Skip to content
Snippets Groups Projects
  1. Jun 25, 2024
  2. May 20, 2024
  3. Mar 25, 2024
  4. Oct 07, 2023
  5. Sep 27, 2022
  6. Jul 08, 2022
  7. Nov 24, 2021
  8. Nov 10, 2021
  9. Mar 02, 2021
  10. Jan 25, 2021
    • Andreas Dedner's avatar
      fix the order in which dune modules are processed when calling `make... · 85801614
      Andreas Dedner authored
      fix the order in which dune modules are processed when calling `make install_python` with `setup-dunepy`.
      Also add a `pyproject.toml` to make sure `wheel` is available when installing dune-common. Also added `wheel`
      to python dependencies in dune.module so that downstream modules can rely on `wheel` being available.
      85801614
  11. Jan 24, 2021
    • Christian Engwer's avatar
      [python] store cmake argumets simply as a list · 5fccea67
      Christian Engwer authored
      cmake arguments were stored as a dict, having mainly definitions in mind.
      
      This lead to several issues, as cmake has many different kinds of
      commmand line arguments.
      
      Instead of storing these arguments as a dict, we now only store them as
      a list, which can directly be passed to Popen, when spawning the cmake
      process.
      
      Fixes #238.
      5fccea67
  12. Jan 23, 2021
  13. Dec 18, 2020
    • Andreas Dedner's avatar
    • Andreas Dedner's avatar
      use correct flags to disable documentation · 44b51c19
      Andreas Dedner authored
      add option to `dunepackaging` script to only build sdist but not upload
      
      exti with code 0 in dunepackaging.py -c so it can be used with dunecontrol
      44b51c19
    • Samuel Burbulla's avatar
      Store setup.py and pyproject.toml when uploading modules. · 91158b30
      Samuel Burbulla authored and Andreas Dedner's avatar Andreas Dedner committed
      make setup-dunepy.py work again without an installed dune-common
      
      remove unused default cmake options for building dune-py
      
      Add git checkout setup.py pyproject.toml to dunepackaging -c.
      91158b30
    • Andreas Dedner's avatar
      make it possible to use setup.py without having an installed dune-common... · 9485e0b3
      Andreas Dedner authored
      make it possible to use setup.py without having an installed dune-common python package. This requires having the PYTHONPATH set as it is now done in dune-common/bin/dunepackaging.py
      
      [bugfix] previous commit
      
      [bugfix] previous commit
      
      set the correct 'prefix' in the pc files if SKBUILD is set, i.e.,
      a wheel is being build using scikit-build
      9485e0b3
    • Andreas Dedner's avatar
      move part of dunepackaging.py to python/dune/common/dunepackaging.py · 5d15ffc7
      Andreas Dedner authored
      to automate generation of metadata for setup.py for other modules
      
      [bug fix] previous commit
      
      move files around a bit to be able to use the metaData extraction
      from dunepackaging.py
      
      use more of the cmake variables in python/setup.py.in
      
      fix an issue in dunepackaging.py for modules without a python package
      
      - remove CMakeCache.txt file in dune-py
      - check that pyproject.toml file contains all dune module dependencies
        mentioned in dune.module to check consistency
      
      [bug fix] previous commit
      
      add dune modules from pyproject.toml to install_requires in setup.py
      
      [bug fix] previous commit
      
      added files generated when calling python setup.py sdist to git ignore list
      
      Update bin/dunepackaging.py.
      
      Add path to dunepackaging if dune-common.
      
      Append version number devDATE to -git versions and add suggestions if they have a pypi package.
      5d15ffc7
    • Samuel Burbulla's avatar
      Add Python-Requires and set CMAKE variables. · acc482d3
      Samuel Burbulla authored and Andreas Dedner's avatar Andreas Dedner committed
      acc482d3
    • Samuel Burbulla's avatar
      Add dunepackaging script. · 3fa4592c
      Samuel Burbulla authored and Andreas Dedner's avatar Andreas Dedner committed
      Remove __pycache__.
      
      Add CMAKE_MACOSX_RPATH=TRUE.
      
      experiment with extracting required meta data for generating setup.py from
      - dune.module file
      - pkg_resource
      This version does not require an extra project.py file but does assume that
      the python module for which setup.py is to be generated is installed. Also dune.common
      must be available:
      - dune.common.module.Description class is used to parse dune.module file
      - pkg_resource is used to extract additional metadata information (as provided by
        python/setup.py.in) requiring the module to be installed. This data is
        'description' ('Summary'), 'url' ('home-page'), 'author', and the install_requires.
        At the moment this will fail e.g. for dune-localfunctions which has no python
        package. We could decide to add the required information to dune.module and use
        replacements in python/setup.py.in instead.
      
      Parse meta data from dune.module and setup.py.in.
      
      add a try except around trying to open python/setup.py.in
      3fa4592c
    • Samuel Burbulla's avatar
      Initial version. · f6e0ff15
      Samuel Burbulla authored and Andreas Dedner's avatar Andreas Dedner committed
      Build shared libraries with .so suffix on Mac.
      
      Install pybind11 modules.
      
      Generate dependencies of dune-py on-demand.
      
      fixed a few issues with generating dune-py on a linux machine
      f6e0ff15
  14. Dec 09, 2020
    • Carsten Gräser's avatar
      [python] Add support for --module=mod to bin/setup-dunepy.py · 4a3ea628
      Carsten Gräser authored and Andreas Dedner's avatar Andreas Dedner committed
      This adds an optional parameter `--module=mod` to `setup-dunepy.py`.
      If this parameter is passed, only `mod` and its dependencies are
      used as dependencies of the newly created dune-py module. This allows
      to do
      ```
      dunecontrol --opts=my.opts --module=foo all
      setup-dunepy.py --opts=my.opts --module=foo install
      ```
      which would otherwise fail if `setup-dunepy.py` tries to process
      found modules that have not been build by `dunecontrol`. If the
      option is not passed all found modules are used as dependencies
      as before.
      4a3ea628
  15. Nov 15, 2020
  16. Oct 31, 2020
  17. Apr 02, 2020
  18. Mar 27, 2020
Loading