Skip to content

Instantly share code, notes, and snippets.

@aanand
Created May 29, 2015 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aanand/3d992c90a238a1ecdfd5 to your computer and use it in GitHub Desktop.
Save aanand/3d992c90a238a1ecdfd5 to your computer and use it in GitHub Desktop.
$ script/build-osx
+ rm -rf venv
+ virtualenv -p /usr/local/bin/python venv
Running virtualenv with interpreter /usr/local/bin/python
New python executable in venv/bin/python2.7
Also creating executable in venv/bin/python
Installing setuptools, pip, wheel...done.
+ venv/bin/pip install -r requirements.txt
Collecting PyYAML==3.10 (from -r requirements.txt (line 1))
Downloading PyYAML-3.10.tar.gz (241kB)
100% |████████████████████████████████| 241kB 1.1MB/s
Collecting docker-py==1.2.2 (from -r requirements.txt (line 2))
Collecting dockerpty==0.3.3 (from -r requirements.txt (line 3))
Downloading dockerpty-0.3.3.tar.gz
Collecting docopt==0.6.1 (from -r requirements.txt (line 4))
Downloading docopt-0.6.1.tar.gz
Collecting requests==2.6.1 (from -r requirements.txt (line 5))
Downloading requests-2.6.1-py2.py3-none-any.whl (469kB)
100% |████████████████████████████████| 471kB 653kB/s
Collecting six==1.7.3 (from -r requirements.txt (line 6))
Downloading six-1.7.3-py2.py3-none-any.whl
Collecting texttable==0.8.2 (from -r requirements.txt (line 7))
Downloading texttable-0.8.2.tar.gz
Collecting websocket-client==0.11.0 (from -r requirements.txt (line 8))
Using cached websocket-client-0.11.0.tar.gz
Collecting cryptography (from -r requirements.txt (line 9))
Downloading cryptography-0.9.tar.gz (302kB)
100% |████████████████████████████████| 303kB 669kB/s
Collecting pyopenssl (from -r requirements.txt (line 10))
Downloading pyOpenSSL-0.15.1-py2.py3-none-any.whl (102kB)
100% |████████████████████████████████| 106kB 3.2MB/s
Collecting ndg-httpsclient (from -r requirements.txt (line 11))
Downloading ndg_httpsclient-0.4.0.tar.gz
Collecting pyasn1 (from -r requirements.txt (line 12))
Downloading pyasn1-0.1.7.tar.gz (68kB)
100% |████████████████████████████████| 69kB 2.2MB/s
Collecting idna (from cryptography->-r requirements.txt (line 9))
Downloading idna-2.0.tar.gz (135kB)
100% |████████████████████████████████| 135kB 691kB/s
Requirement already satisfied (use --upgrade to upgrade): setuptools in ./venv/lib/python2.7/site-packages (from cryptography->-r requirements.txt (line 9))
Collecting enum34 (from cryptography->-r requirements.txt (line 9))
Downloading enum34-1.0.4.tar.gz
Collecting ipaddress (from cryptography->-r requirements.txt (line 9))
Downloading ipaddress-1.0.7-py27-none-any.whl
Collecting cffi>=0.8 (from cryptography->-r requirements.txt (line 9))
Downloading cffi-1.0.3.tar.gz (317kB)
100% |████████████████████████████████| 319kB 926kB/s
Collecting pycparser (from cffi>=0.8->cryptography->-r requirements.txt (line 9))
Downloading pycparser-2.13.tar.gz (299kB)
100% |████████████████████████████████| 303kB 729kB/s
Building wheels for collected packages: PyYAML, dockerpty, docopt, texttable, websocket-client, cryptography, ndg-httpsclient, pyasn1, idna, enum34, cffi, pycparser
Running setup.py bdist_wheel for PyYAML
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/e8/b0/84/4d98da6d9f8173a58bfd4fd21a33d04ad8198f3b026ec2e785
Running setup.py bdist_wheel for dockerpty
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/33/84/1e/56cdbb16cdcfb0b3f244e22d609782fc3fea8e05e6ee7b8140
Running setup.py bdist_wheel for docopt
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/54/cc/51/69801a7c9df37524c0ffd0d2f3b50a9185db7270d93617ff14
Running setup.py bdist_wheel for texttable
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/e3/f2/ee/7ac43d3932efb036d635e03b4a565b6e75d7f8cd9ab50914ac
Running setup.py bdist_wheel for websocket-client
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/3d/4b/79/9f0721e726157339128d1bf1992272b3e1677b55a86cc6b66e
Running setup.py bdist_wheel for cryptography
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/d7/64/02/7258f08eae0b9c930c04209959c9a0794b9729c2b64258117e
Running setup.py bdist_wheel for ndg-httpsclient
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/30/85/40/a29750f9287fe119a10708580a73cfb16f51e5f9a820430a2d
Running setup.py bdist_wheel for pyasn1
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/31/fb/ce/b94769f0481f94180f1e92307e22b9bf8b9be418ff2e21a36b
Running setup.py bdist_wheel for idna
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/a7/fc/b5/8cc4be8da4ff4056a385547460c982149a18ef574d68b80af4
Running setup.py bdist_wheel for enum34
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/d1/b2/2c/b51348698bd1921a226cf48d790b282d86fb4bcf9728afd6b3
Running setup.py bdist_wheel for cffi
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/32/14/06/f3c3297421c7f22dc7c4b4408bb239edbcbb9e9d985d9bfd98
Running setup.py bdist_wheel for pycparser
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/ac/aa/ba/6c2660c310c5c2816d7f5b4ec251c6a66b4fa13e34fc7e08d9
Successfully built PyYAML dockerpty docopt texttable websocket-client cryptography ndg-httpsclient pyasn1 idna enum34 cffi pycparser
Installing collected packages: PyYAML, requests, websocket-client, six, docker-py, dockerpty, docopt, texttable, idna, pyasn1, enum34, ipaddress, pycparser, cffi, cryptography, pyopenssl, ndg-httpsclient
Successfully installed PyYAML-3.10 cffi-1.0.3 cryptography-0.9 docker-py-1.2.2 dockerpty-0.3.3 docopt-0.6.1 enum34-1.0.4 idna-2.0 ipaddress-1.0.7 ndg-httpsclient-0.4.0 pyasn1-0.1.7 pycparser-2.13 pyopenssl-0.15.1 requests-2.6.1 six-1.7.3 texttable-0.8.2 websocket-client-0.11.0
+ venv/bin/pip install -r requirements-dev.txt
Collecting mock>=1.0.1 (from -r requirements-dev.txt (line 1))
Using cached mock-1.0.1.tar.gz
Collecting nose==1.3.4 (from -r requirements-dev.txt (line 2))
Downloading nose-1.3.4-py2-none-any.whl (154kB)
100% |████████████████████████████████| 155kB 503kB/s
Collecting pyinstaller from git+https://github.com/pyinstaller/pyinstaller.git@12e40471c77f588ea5be352f7219c873ddaae056#egg=pyinstaller (from -r requirements-dev.txt (line 3))
Cloning https://github.com/pyinstaller/pyinstaller.git (to 12e40471c77f588ea5be352f7219c873ddaae056) to /private/var/folders/zd/gsd4r7y17wb7qscnkp5xl1q00000gp/T/pip-build-RqFJL4/pyinstaller
Could not find a tag or branch '12e40471c77f588ea5be352f7219c873ddaae056', assuming commit.
Collecting unittest2==0.8.0 (from -r requirements-dev.txt (line 4))
Downloading unittest2-0.8.0-py2.py3-none-any.whl (94kB)
100% |████████████████████████████████| 98kB 1.0MB/s
Collecting flake8==2.3.0 (from -r requirements-dev.txt (line 5))
Using cached flake8-2.3.0-py2.py3-none-any.whl
Collecting pep8==1.6.1 (from -r requirements-dev.txt (line 6))
Downloading pep8-1.6.1-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): setuptools in ./venv/lib/python2.7/site-packages (from pyinstaller->-r requirements-dev.txt (line 3))
Collecting argparse (from unittest2==0.8.0->-r requirements-dev.txt (line 4))
Downloading argparse-1.3.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): six in ./venv/lib/python2.7/site-packages (from unittest2==0.8.0->-r requirements-dev.txt (line 4))
Collecting mccabe>=0.2.1 (from flake8==2.3.0->-r requirements-dev.txt (line 5))
Using cached mccabe-0.3-py2.py3-none-any.whl
Collecting pyflakes>=0.8.1 (from flake8==2.3.0->-r requirements-dev.txt (line 5))
Using cached pyflakes-0.8.1-py2.py3-none-any.whl
Building wheels for collected packages: mock
Running setup.py bdist_wheel for mock
Stored in directory: /Users/aanand/Library/Caches/pip/wheels/c9/b4/72/4de2802cbc4bfd82f938ff92015e1b42f01131583675ab4d00
Successfully built mock
Installing collected packages: mock, nose, pyinstaller, argparse, unittest2, mccabe, pep8, pyflakes, flake8
Running setup.py install for pyinstaller
Successfully installed argparse-1.3.0 flake8-2.3.0 mccabe-0.3 mock-1.0.1 nose-1.3.4 pep8-1.6.1 pyflakes-0.8.1 pyinstaller-2.1.1dev-12e4047 unittest2-0.8.0
+ venv/bin/pip install .
Processing /Users/aanand/work/docker/compose
Requirement already satisfied (use --upgrade to upgrade): docopt<0.7,>=0.6.1 in ./venv/lib/python2.7/site-packages (from docker-compose==1.3.0.dev0)
Requirement already satisfied (use --upgrade to upgrade): PyYAML<4,>=3.10 in ./venv/lib/python2.7/site-packages (from docker-compose==1.3.0.dev0)
Requirement already satisfied (use --upgrade to upgrade): requests<2.7,>=2.6.1 in ./venv/lib/python2.7/site-packages (from docker-compose==1.3.0.dev0)
Requirement already satisfied (use --upgrade to upgrade): texttable<0.9,>=0.8.1 in ./venv/lib/python2.7/site-packages (from docker-compose==1.3.0.dev0)
Requirement already satisfied (use --upgrade to upgrade): websocket-client<1.0,>=0.11.0 in ./venv/lib/python2.7/site-packages (from docker-compose==1.3.0.dev0)
Requirement already satisfied (use --upgrade to upgrade): docker-py<1.3,>=1.2.2 in ./venv/lib/python2.7/site-packages (from docker-compose==1.3.0.dev0)
Requirement already satisfied (use --upgrade to upgrade): dockerpty<0.4,>=0.3.3 in ./venv/lib/python2.7/site-packages (from docker-compose==1.3.0.dev0)
Requirement already satisfied (use --upgrade to upgrade): six<2,>=1.3.0 in ./venv/lib/python2.7/site-packages (from docker-compose==1.3.0.dev0)
Installing collected packages: docker-compose
Running setup.py install for docker-compose
Successfully installed docker-compose-1.3.0.dev0
+ venv/bin/pyinstaller -F bin/docker-compose
12 INFO: wrote /Users/aanand/work/docker/compose/docker-compose.spec
31 WARNING: You are running 64-bit Python: created binaries will only work on Mac OS X 10.6+.
If you need 10.4-10.5 compatibility, run Python as a 32-bit binary with this command:
VERSIONER_PYTHON_PREFER_32_BIT=yes arch -i386 /Users/aanand/work/docker/compose/venv/bin/python2.7
4054 INFO: UPX is not available.
4071 INFO: Processing hook hook-os
4163 INFO: Processing hook hook-time
4164 INFO: Processing hook hook-cPickle
4220 INFO: Processing hook hook-_sre
4330 INFO: Processing hook hook-cStringIO
4437 INFO: Processing hook hook-encodings
4450 INFO: Processing hook hook-codecs
4956 INFO: Extending PYTHONPATH with /Users/aanand/work/docker/compose/bin
4957 INFO: checking Analysis
4957 INFO: building because /Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/loader/_pyi_bootstrap.py changed
4957 INFO: running Analysis out00-Analysis.toc
4976 INFO: Analyzing /Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/loader/_pyi_bootstrap.py
4993 INFO: Processing hook hook-os
5025 INFO: Processing hook hook-site
5045 INFO: Processing hook hook-encodings
5254 INFO: Processing hook hook-time
5256 INFO: Processing hook hook-cPickle
5411 INFO: Processing hook hook-_sre
5656 INFO: Processing hook hook-cStringIO
5860 INFO: Processing hook hook-codecs
6333 INFO: Processing hook hook-pydoc
6478 INFO: Processing hook hook-email
6527 INFO: Processing hook hook-httplib
6559 INFO: Processing hook hook-email.message
6920 INFO: Analyzing /Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/loader/pyi_importers.py
6954 INFO: Analyzing /Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/loader/pyi_archive.py
6998 INFO: Analyzing /Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/loader/pyi_carchive.py
7030 INFO: Analyzing /Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/loader/pyi_os_path.py
7036 INFO: Analyzing bin/docker-compose
7168 INFO: Processing hook hook-xml
7263 INFO: Processing hook hook-xml.sax
7309 INFO: Processing hook hook-pyexpat
10172 INFO: Processing hook hook-requests
10203 INFO: Processing hook hook-distutils
10681 INFO: Processing hook hook-cryptography
10807 INFO: Processing hook hook-setuptools
Traceback (most recent call last):
File "venv/bin/pyinstaller", line 9, in <module>
load_entry_point('PyInstaller===2.1.1dev-12e4047', 'console_scripts', 'pyinstaller')()
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/main.py", line 88, in run
run_build(opts, spec_file, pyi_config)
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/main.py", line 46, in run_build
PyInstaller.build.main(pyi_config, spec_file, **opts.__dict__)
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/build.py", line 1968, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/build.py", line 1917, in build
execfile(spec)
File "/Users/aanand/work/docker/compose/docker-compose.spec", line 11, in <module>
cipher=block_cipher)
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/build.py", line 473, in __init__
self.__postinit__()
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/build.py", line 312, in __postinit__
self.assemble()
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/build.py", line 625, in assemble
importTracker.analyze_script(script)
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/depend/imptracker.py", line 277, in analyze_script
return self.analyze_r('__main__')
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/depend/imptracker.py", line 170, in analyze_r
newnms = self.analyze_one(name, nm, imptyp, level)
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/depend/imptracker.py", line 231, in analyze_one
mod = self.doimport(nm, ctx, fqname)
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/depend/imptracker.py", line 329, in doimport
hook = imp.load_module('PyInstaller.hooks.' + hookmodnm, *m)
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/hooks/hook-sysconfig.py", line 55, in <module>
datas.append((_CONFIG_H, _relpath(_CONFIG_H)))
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/hooks/hook-sysconfig.py", line 40, in _relpath
prefix = _find_prefix(filename)
File "/Users/aanand/work/docker/compose/venv/lib/python2.7/site-packages/PyInstaller/hooks/hook-sysconfig.py", line 36, in _find_prefix
return possible_prefixes[0]
IndexError: list index out of range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment