mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-16 02:04:45 +03:00
Merge 1fe4901925
into 00158fc7a0
This commit is contained in:
commit
3ac7d719db
|
@ -18,7 +18,9 @@ install:
|
||||||
- cd c:\pillow\winbuild\
|
- cd c:\pillow\winbuild\
|
||||||
- c:\python34\python.exe c:\pillow\winbuild\build_dep.py
|
- c:\python34\python.exe c:\pillow\winbuild\build_dep.py
|
||||||
- c:\pillow\winbuild\build_deps.cmd
|
- c:\pillow\winbuild\build_deps.cmd
|
||||||
|
- '%PYTHON%\Scripts\pip.exe install wheel'
|
||||||
build_script:
|
build_script:
|
||||||
|
- '%PYTHON%\python.exe c:\pillow\winbuild\build.py --dist'
|
||||||
- '%PYTHON%\python.exe c:\pillow\winbuild\build.py'
|
- '%PYTHON%\python.exe c:\pillow\winbuild\build.py'
|
||||||
- cd c:\pillow
|
- cd c:\pillow
|
||||||
- dir dist\*.egg
|
- dir dist\*.egg
|
||||||
|
@ -33,7 +35,7 @@ artifacts:
|
||||||
- path: pillow\dist\*.egg
|
- path: pillow\dist\*.egg
|
||||||
name: build
|
name: build
|
||||||
after_test:
|
after_test:
|
||||||
- ps: Get-ChildItem .\dist\*.egg | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
|
- ps: Get-ChildItem .\dist\*.* | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
|
||||||
deploy:
|
deploy:
|
||||||
provider: S3
|
provider: S3
|
||||||
access_key_id: AKIAIRAXC62ZNTVQJMOQ
|
access_key_id: AKIAIRAXC62ZNTVQJMOQ
|
||||||
|
@ -42,4 +44,3 @@ deploy:
|
||||||
bucket: pillow-nightly
|
bucket: pillow-nightly
|
||||||
folder: win/$(APPVEYOR_BUILD_NUMBER)/
|
folder: win/$(APPVEYOR_BUILD_NUMBER)/
|
||||||
artifact: /.*egg/
|
artifact: /.*egg/
|
||||||
|
|
||||||
|
|
|
@ -3,10 +3,10 @@
|
||||||
import subprocess
|
import subprocess
|
||||||
import shutil
|
import shutil
|
||||||
import sys
|
import sys
|
||||||
import getopt
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from config import *
|
from config import compilers, pythons, compiler_fromEnv, pyversion_fromEnv
|
||||||
|
from config import VIRT_BASE, X64_EXT
|
||||||
|
|
||||||
|
|
||||||
def setup_vms():
|
def setup_vms():
|
||||||
|
@ -23,8 +23,7 @@ def setup_vms():
|
||||||
return "\n".join(ret)
|
return "\n".join(ret)
|
||||||
|
|
||||||
|
|
||||||
def run_script(params):
|
def run_script(version, script):
|
||||||
(version, script) = params
|
|
||||||
try:
|
try:
|
||||||
print("Running %s" % version)
|
print("Running %s" % version)
|
||||||
filename = 'build_pillow_%s.cmd' % version
|
filename = 'build_pillow_%s.cmd' % version
|
||||||
|
@ -102,7 +101,7 @@ def clean():
|
||||||
except:
|
except:
|
||||||
# could already be removed
|
# could already be removed
|
||||||
pass
|
pass
|
||||||
run_script(('virtualenvs', setup_vms()))
|
run_script('virtualenvs', setup_vms())
|
||||||
|
|
||||||
|
|
||||||
def main(op):
|
def main(op):
|
||||||
|
@ -123,36 +122,37 @@ def main(op):
|
||||||
64)]),
|
64)]),
|
||||||
footer()])))
|
footer()])))
|
||||||
|
|
||||||
results = map(run_script, scripts)
|
results = [run_script(pv, cv) for pv, cv in scripts]
|
||||||
|
|
||||||
for (version, status, trace, err) in results:
|
for (version, status, trace, err) in results:
|
||||||
print("Compiled %s: %s" % (version, status and 'ERR' or 'OK'))
|
print("Compiled %s: %s" % (version, status and 'ERR' or 'OK'))
|
||||||
|
|
||||||
|
|
||||||
def run_one(op):
|
def run_one(op):
|
||||||
|
|
||||||
compiler = compiler_fromEnv()
|
compiler = compiler_fromEnv()
|
||||||
py_version = pyversion_fromEnv()
|
py_version = pyversion_fromEnv()
|
||||||
|
|
||||||
run_script((py_version,
|
run_script(py_version,
|
||||||
"\n".join([header(op),
|
"\n".join([header(op),
|
||||||
build_one(py_version, compiler),
|
build_one(py_version, compiler),
|
||||||
footer()])
|
footer()])
|
||||||
))
|
)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
def run(op):
|
||||||
opts, args = getopt.getopt(sys.argv[1:], '', ['clean', 'dist'])
|
|
||||||
opts = dict(opts)
|
|
||||||
|
|
||||||
if '--clean' in opts:
|
|
||||||
clean()
|
|
||||||
|
|
||||||
op = 'install'
|
|
||||||
if '--dist' in opts:
|
|
||||||
op = "bdist_wininst --user-access-control=auto"
|
|
||||||
|
|
||||||
if 'PYTHON' in os.environ:
|
if 'PYTHON' in os.environ:
|
||||||
run_one(op)
|
run_one(op)
|
||||||
else:
|
else:
|
||||||
main(op)
|
main(op)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
args = sys.argv[1:]
|
||||||
|
if '--clean' in args:
|
||||||
|
clean()
|
||||||
|
|
||||||
|
if '--dist' in args:
|
||||||
|
run('bdist_wininst --user-access-control=auto')
|
||||||
|
run('bdist_wheel')
|
||||||
|
else:
|
||||||
|
run('install')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user