-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix invalid header path when
--root
is set
When we invoke setuptools with a `--root`, the header directory we take from the Scheme object already contains the root as a prefix. Passing both `--root` and `--install-headers` will result in setuptools adding the root prefix twice in the header path. As the Scheme object already has all directories relative to `--root`, we can pass these separately with the `--install-*` setuptools arguments and drop the `--root` argument. As the specific locations differ across interpreters and platforms, the included test only checks that scripts, headers and library contents are installed under the specified package root. This is not the case without the fix, as some files will be installed under the duplicated root path, outside the test `venv`.
- Loading branch information
Showing
4 changed files
with
67 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Install libs, headers and data files in the correct location when | ||
``--root`` is specified. |
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
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