mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-14 01:04:45 +03:00
Build wheels on Windows
This commit is contained in:
parent
cc0c9b2b0d
commit
ee8073ce12
|
@ -136,15 +136,20 @@ def run_one(op):
|
|||
)
|
||||
|
||||
|
||||
def run(op):
|
||||
if 'PYTHON' in os.environ:
|
||||
run_one(op)
|
||||
else:
|
||||
main(op)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
args = sys.argv[1:]
|
||||
if '--clean' in args:
|
||||
clean()
|
||||
|
||||
op = 'install'
|
||||
if '--dist' in args:
|
||||
op = "bdist_wininst --user-access-control=auto"
|
||||
if 'PYTHON' in os.environ:
|
||||
run_one(op)
|
||||
run('bdist_wininst --user-access-control=auto')
|
||||
run('bdist_wheel')
|
||||
else:
|
||||
main(op)
|
||||
run('install')
|
||||
|
|
Loading…
Reference in New Issue
Block a user