-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
installer: fix PATH when building a dependency from source (#8630)
(cherry picked from commit c6387b8)
- Loading branch information
Showing
5 changed files
with
76 additions
and
4 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
Empty file.
3 changes: 3 additions & 0 deletions
3
tests/fixtures/project_with_setup_calls_script/pyproject.toml
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,3 @@ | ||
[build-system] | ||
requires = ["setuptools", "<scripts>"] | ||
build-backend = "setuptools.build_meta:__legacy__" |
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,23 @@ | ||
from __future__ import annotations | ||
|
||
import subprocess | ||
|
||
from setuptools import setup | ||
|
||
if subprocess.call(["exit-code"]) != 42: | ||
raise RuntimeError("Wrong exit code.") | ||
|
||
kwargs = dict( | ||
name="project-with-setup-calls-script", | ||
license="MIT", | ||
version="0.1.2", | ||
description="Demo project.", | ||
author="Sébastien Eustace", | ||
author_email="sebastien@eustace.io", | ||
url="https://github.com/demo/demo", | ||
packages=["my_package"], | ||
install_requires=["pendulum>=1.4.4", "cachy[msgpack]>=0.2.0"], | ||
) | ||
|
||
|
||
setup(**kwargs) |
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