-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
setup.py build fails without PATH #6934
Comments
I'm not sure that we can reasonably expect a build to work if there's no Are there any binary packages that build with this configuration? |
What happens if you try running setup.py with the following patch? diff --git a/setup.py b/setup.py
index 8f7f223f8..9fc06f73f 100755
--- a/setup.py
+++ b/setup.py
@@ -243,6 +243,8 @@ def _find_include_dir(self, dirname, include):
def _cmd_exists(cmd):
+ if not "PATH" in os.environ:
+ return
return any(
os.access(os.path.join(path, cmd), os.X_OK)
for path in os.environ["PATH"].split(os.pathsep) |
@radarhere, radarhere@02b976b fixed the problem. Now |
Note that invoking https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html |
What did you do?
What did you expect to happen?
The build succeeds.
What actually happened?
What are your OS, Python and Pillow versions?
The text was updated successfully, but these errors were encountered: