-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
python bindings: make cffi builds more friendly for distros
Some distributions (such as openSUS) would like to make the python bindings a subpackage of the main libpathrs package, which means they need to build the bindings and the library at the same time. This is possible with setuptools, but being able to create wheels would be ideal. The trick is to make it so that if you pass the magic environment variable PATHRS_SRC_ROOT, we can use that as the source dir for compiling against even when inside a venv for "python -m build". This has no impact on the wheels we will make for PyPI. Signed-off-by: Aleksa Sarai <[email protected]>
- Loading branch information
Showing
3 changed files
with
65 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
/build/ | ||
/dist/ | ||
/*.egg-info/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters