Skip to content
Snippets Groups Projects
  1. Dec 18, 2020
    • Andreas Dedner's avatar
      add a `duneactivate` script to `bin` that can be used instead of `activate` to · c16c45fb
      Andreas Dedner authored
      also set the `LD_LIBRARY_PATH`
      
      [bugfix] used the wrong way to access the path to a sourced script - was working by chance
      c16c45fb
    • 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
    • Samuel Burbulla's avatar
      Improve dependency generation. · 54975a36
      Samuel Burbulla authored and Andreas Dedner's avatar Andreas Dedner committed
      54975a36
    • 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
      Include dev versions in dependencies. · c85c3746
      Samuel Burbulla authored and Andreas Dedner's avatar Andreas Dedner committed
      c85c3746
    • 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
  2. 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
  3. May 24, 2020
  4. Apr 02, 2020
  5. Feb 26, 2020
  6. Dec 17, 2019
  7. Nov 19, 2019
  8. Nov 15, 2019
  9. Sep 13, 2019
  10. Sep 10, 2019
  11. Aug 30, 2019
  12. Feb 11, 2019
  13. Feb 07, 2019
  14. Jan 09, 2019
    • Jö Fahlke's avatar
      Fix, modernize and document check for existing modules · a40a591b
      Jö Fahlke authored
      Fixes:
      - Use unambiguous truth values (Closes: #134)
      - When checking with pkg-config, look for the dependency rather than the last
        module from the list of found modules
      
      Modernizations:
      - Scope variables
      - Use a simple `if` rather than a loop to check for presence of a depency in
        list of existing modules
      - Make sure the function does not depend on the status of the `-e` option, or
        whether it is called from within the condition of an `if` or a `||` or `&&`.
      
      Documentation:
      - Document calling convention for the function and assumptions on the
        parameters.
      a40a591b
    • Jö Fahlke's avatar
      bin/duneproject: Expand tabs and fix indentation · 4a045958
      Jö Fahlke authored
      As a shell script, duneproject is not covered by the scripts preventing tabs
      in indentation (or simply was exempt from the Great Reformatting).  Also, the
      tab width was inconsistent.
      
      This expands all tabs and uses a consistent indentation of 2.  It also
      instructs both emacs and vi to use these settings, since their default
      indentation for shell scripts seems to differ.
      4a045958
  15. Nov 08, 2018
  16. Aug 21, 2018
  17. Jun 30, 2018
  18. Jun 29, 2018
  19. Jan 06, 2018
  20. Dec 01, 2017
  21. Nov 30, 2017
    • Jö Fahlke's avatar
      [whitespace-hook] Check only those files we really intent to check. · 2c3024bc
      Jö Fahlke authored
      - For the files that should only occur in the toplevel directory, make sure to
        only match them in the toplevel directory.  This allows having them in an
        imported header only library in some subdirectory.
        + For files such as `.cc` or `.hh` that are matched by extension, there is
          no sane generic way to not check them when they are imported from
          somewhere else, so you'll still have to do something special, sorry.
      - For files that are matched by name, make sure that name matches the full
        basename of the file, not just a suffix.
      - Pass the regular expressions to perl in a safe way so they can contain
        arbitrary character without arcane quoting.  This mostly applies to the path
        separator '/'.
      2c3024bc
  22. Nov 29, 2017
Loading