Demo for setuptools / pip-ready packaging #29
Closed
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.
The purpose of this experimental PR is to explore how the packaging for sphgeom might be modified so that third-party packages can consume it via
pip
(and possibly even be distributed via PyPI and conda-forge in the future). The related ticket is DM-27354.The main change is that the build dependencies are installed using a
pyproject.toml
(using the PEP 517 mechanism). This replaces the use of arequirements.txt
file for installingsetuptools_cpp
and other dependencies, and which isn't really a solution for a pip-installable package.I also introduced a tox-based build to help isolate builds and tests from the development environment.
At this point, it seems that the extensions are compiled successfully. Unfortunately, the extensions aren't importable. I don't know why yet.It works now that I'm settingpackages
andpackage_dir
correctly for the last namespace package layout.