mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-04 21:50:54 +03:00
Merge pull request #2277 from uploadcare/executable-setup
Set executable flag on setup.py and add shebang
This commit is contained in:
commit
5e41721cba
5
setup.py
Normal file → Executable file
5
setup.py
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/env python
|
||||||
# > pyroma .
|
# > pyroma .
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
# Checking .
|
# Checking .
|
||||||
|
@ -89,7 +90,7 @@ def _lib_include(root):
|
||||||
|
|
||||||
def _cmd_exists(cmd):
|
def _cmd_exists(cmd):
|
||||||
return any(
|
return any(
|
||||||
os.access(os.path.join(path, cmd), os.X_OK)
|
os.access(os.path.join(path, cmd), os.X_OK)
|
||||||
for path in os.environ["PATH"].split(os.pathsep)
|
for path in os.environ["PATH"].split(os.pathsep)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -547,7 +548,7 @@ class pil_build_ext(build_ext):
|
||||||
if f in ('jpeg', 'zlib'):
|
if f in ('jpeg', 'zlib'):
|
||||||
raise RequiredDependencyException(f)
|
raise RequiredDependencyException(f)
|
||||||
raise DependencyException(f)
|
raise DependencyException(f)
|
||||||
|
|
||||||
#
|
#
|
||||||
# core library
|
# core library
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user