This is why every python script should have .py in its name
This commit is contained in:
Родитель
a5eb0a5a03
Коммит
8baf19fc46
|
@ -4,3 +4,4 @@
|
||||||
[submodule "vendor/boto"]
|
[submodule "vendor/boto"]
|
||||||
path = vendor/boto
|
path = vendor/boto
|
||||||
url = https://github.com/piotrbulinski/boto.git
|
url = https://github.com/piotrbulinski/boto.git
|
||||||
|
ignore = untracked
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import os
|
import os
|
||||||
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -20,6 +21,9 @@ def main():
|
||||||
# Setup boto.
|
# Setup boto.
|
||||||
with scoped_cwd(os.path.join('vendor', 'boto')):
|
with scoped_cwd(os.path.join('vendor', 'boto')):
|
||||||
subprocess.call([sys.executable, 'setup.py', 'build'])
|
subprocess.call([sys.executable, 'setup.py', 'build'])
|
||||||
|
# On windows python assumes all script names end with .py, if we don't
|
||||||
|
# do so some modules like multiprocessing would break.
|
||||||
|
shutil.copy(os.path.join('bin', 's3put'), os.path.join('bin', 's3put.py'))
|
||||||
|
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
|
|
Загрузка…
Ссылка в новой задаче