ripe-memory-59241
10/18/2017, 11:45 PMrough-minister-58256
10/18/2017, 11:45 PMrough-minister-58256
10/18/2017, 11:45 PMripe-memory-59241
10/18/2017, 11:46 PMripe-memory-59241
10/18/2017, 11:46 PMrough-minister-58256
10/18/2017, 11:47 PM[omerta ~]$ pex --disable-cache scipy scikit-learn numpy -o test.pex
[omerta ~]$ ./test.pex
Python 2.7.10 (default, Dec 16 2015, 14:09:45)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import numpy, sklearn, scipy
>>>
rough-minister-58256
10/18/2017, 11:48 PMrough-minister-58256
10/18/2017, 11:48 PM--python-repos-repos
for pants, -f
for pexrough-minister-58256
10/18/2017, 11:49 PM./pants --python-repos-repos="['file:///tmp/wheels']" ...
to make pants resolve against that dirrough-minister-58256
10/18/2017, 11:49 PMrough-minister-58256
10/18/2017, 11:50 PMrough-minister-58256
10/18/2017, 11:52 PMripe-memory-59241
10/18/2017, 11:52 PMripe-memory-59241
10/19/2017, 12:01 AMPEX_VERBOSE=5 pex --disable-cache -f /home/ec2-user/custom_numpy_wheel numpy scipy
it seems to take forever with the last message pex: Constructed UrllibContext context <pex.http.UrllibContext object at 0x26078d0>
. Is that expected?ripe-memory-59241
10/19/2017, 12:02 AMrough-minister-58256
10/19/2017, 12:06 AMrough-minister-58256
10/19/2017, 12:07 AMpip wheel
into a dir to get all transitive deps as wheels, then pex -f /those/wheels --no-build --no-pypi
to do a pure wheel resolve against themripe-memory-59241
10/19/2017, 12:12 AMpex --disable-cache -f /home/ec2-user/custom_numpy_wheel --no-build --no-pypi numpy scipy
worked almost immediately, and I successfully imported scipy and numpy in the interpreter shell pex opened. Thanks a ton! Now to just add the sklearn wheel. Should be straightforward at this point.rough-minister-58256
10/19/2017, 12:13 AMalert-monitor-62116
10/19/2017, 12:30 AMException message: Package SourcePackage(u'<https://pypi.python.org/packages/03/53/65d932f96d5aab57c21679c30e6ec33c37f8530828263d0a1d41f9faddc9/setuptools-30.0.0.zip#md5=4f7349b1d33b7c32e6f6d46f21c9b651>') is not translateable by ChainedTranslator(EggTranslator, SourceTranslator)
rough-minister-58256
10/19/2017, 12:36 AMpython setup.py bdist_egg
in the unzipped setuptools-30.0.0 dirrough-minister-58256
10/19/2017, 12:36 AMalert-monitor-62116
10/19/2017, 12:43 AMalert-monitor-62116
10/19/2017, 12:46 AMalert-monitor-62116
10/19/2017, 4:44 AMalert-monitor-62116
10/19/2017, 4:58 AM21:57:39 00:01 [bootstrap-jvm-tools]
21:57:39 00:01 [provide-tools-jar]
21:57:39 00:01 [imports]
21:57:39 00:01 [ivy-imports]
21:57:39 00:01 [unpack-jars]
21:57:39 00:01 [unpack-jars]
21:57:39 00:01 [deferred-sources]
21:57:39 00:01 [deferred-sources]
21:57:39 00:01 [jvm-platform-validate]
21:57:39 00:01 [jvm-platform-validate]
21:57:39 00:01 [gen]
21:57:39 00:01 [antlr-java]
21:57:39 00:01 [antlr-py]
21:57:40 00:02 [jaxb]
21:57:40 00:02 [protoc]
21:57:40 00:02 [ragel]
21:57:40 00:02 [thrift-java]
21:57:40 00:02 [thrift-py]
21:57:40 00:02 [wire]
21:57:40 00:02 [avro]
21:57:40 00:02 [avro-java]
21:57:40 00:02 [resolve]
21:57:40 00:02 [ivy]DEBUG] Using previous resolve.
DEBUG] Using previous resolve.
DEBUG] Parsing ivy report /Users/jastl001/git/github.disney.com/data-services/.pants.d/ivy/1abca6e9918764d2c80b3bc51fac752ce87b02ab/resolve-report-default.xml
21:57:40 00:02 [compile]
21:57:40 00:02 [compile-jvm-prep-command]
21:57:40 00:02 [jvm_prep_command]
21:57:40 00:02 [compile-prep-command]
21:57:40 00:02 [compile]
21:57:40 00:02 [zinc]
21:57:41 00:03 [jvm-dep-check]
21:57:41 00:03 [pyprep]
21:57:41 00:03 [interpreter]
and its fails here
alert-monitor-62116
10/19/2017, 5:10 AMsetuptools-30.0.0-py3.6.egg') is not compatible with CPython-2.7.10 / macosx-10.12-intel
alert-monitor-62116
10/19/2017, 5:24 AMlively-france-2777
10/19/2017, 6:24 AM.pants.d/python-setup/resolved_requirements/CPython-2.7.10/
to get it to work (in my case it has usually happened when I tried to build a binary for a different platform than my current).high-advantage-47550
10/19/2017, 8:54 PMscala_jar
? e.g. META-INF/*.SF