Update cmdclass in setup.py to allow standard installation routine (clean fork) #113
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is almost the same as #112, but from a clean fork. I also added a comment to the
setup.py
about updating thecmdclass
object of Versioneer.Below follows the message in the original PR:
I am currently trying to fix #86 and #87. Instead of trying to use another build phase I tried to go back to the initial setup of a
build_ext
phase and aninstall
phase when installing the bindings via Spack.I could actually achieve this by restructuring the
setup.py
and the defintiion of thecmdclass
. I update the internal command classes and this works for me. Together with my Spack package it_version.py
A Spack fork using my fork of the Python bindings can be found here. It contains a new package
py-pyprecice-fork
for installing that fork.I am not completely sure of the implications of my changes. Thus, I would need some feedback whether this change of
setup.py
is legal and whether it breaks any of our tests or use cases.