aloof-angle-91616
07/06/2018, 6:40 AMaloof-angle-91616
07/06/2018, 6:53 AM./build-support/bin/ci.sh
on master, but it does if i just run the test target, and it's the same error message that i'm seeing in the osx shard on my PR (not master) (which is running ci.sh
obviously), that's enough for me to pass out for today. thanks!wide-energy-11069
07/06/2018, 5:22 PMrough-minister-58256
07/06/2018, 5:23 PMmkdir x && (cd x && unzip ../x.pex) && python2.7 ./x
wide-energy-11069
07/06/2018, 5:24 PMwide-energy-11069
07/06/2018, 8:45 PMpex x y z -c alpha
, do the x y z
here without the argument always mean 3rdparty dep?wide-energy-11069
07/06/2018, 8:51 PM./pex_binary pex -c pex -o pex.pex
, how does it figure out pex.bin.pex:main
is entry point?wide-energy-11069
07/06/2018, 10:42 PMx.y:main
. Does it mean it has to be `x/y.py`’s def main
, or could it also mean x/y/main.py
?rough-minister-58256
07/06/2018, 10:45 PMwide-energy-11069
07/06/2018, 10:46 PMrough-minister-58256
07/06/2018, 10:46 PMx.y.main
iircwide-energy-11069
07/06/2018, 10:47 PMwide-energy-11069
07/06/2018, 10:47 PMrough-minister-58256
07/06/2018, 10:47 PM-m MODULE[:SYMBOL], -e MODULE[:SYMBOL], --entry-point=MODULE[:SYMBOL]
Set the entry point to module or module:symbol. If
just specifying module, pex behaves like python -m,
e.g. python -m SimpleHTTPServer. If specifying
module:symbol, pex imports that symbol and invokes it
as if it were main.
rough-minister-58256
07/06/2018, 10:48 PM:
wide-energy-11069
07/06/2018, 10:48 PM:
means a method exactlywide-energy-11069
07/06/2018, 10:49 PMrough-minister-58256
07/06/2018, 10:51 PMwide-energy-11069
07/18/2018, 4:28 PMwide-energy-11069
07/18/2018, 4:51 PMTOXENV=style ./scripts/ci.sh
, but maybe there’s a better way to run locally.rough-minister-58256
07/18/2018, 5:00 PMtox -e style
aloof-angle-91616
07/29/2018, 8:19 PMsetup.py
files for pants python_dist()
targets in a context that gives them access to pants code (in this case, so that the setup.py can import a pants module which extends distutils/setuptools classes. it is entirely possible to write the distutils/setuptools extensions as a completely separate pypi module, as they don't currently need to rely on other parts of pants, and could then just be accessed using setup_requires
in the python_dist()
target (and this is actually pretty reasonable). however, it seems like it should be possible to somehow expose the running pants environment to the setup.py invocation we do in BuildLocalPythonDistributions
and/or SetupPyRunner
, so the setup.py can just do: from setuptools import find_packages
from distutils.core import Extension
from pants.some.module import setup
setup(
# ...,
ext_modules=[Extension(...)],
packages=find_packages(),
I assume this would be done either by creating a pex with the pants requirement, or by adding something to PYTHONPATH
in the executing environment for the setup.py.
this probably isn't that hard when using pants in any other repo besides the pants repo because we can expect a pex with all the relevant pants code to be available, since that is how pants is released, but i can't figure out how to expose the python code from the running pants to a setup.py invocation (i may be trying to go about this all wrong). there's a very little more context in https://github.com/pantsbuild/pants/issues/5661aloof-angle-91616
07/29/2018, 8:22 PMmysterious-farmer-45668
08/13/2018, 6:16 PMenough-analyst-54434
08/13/2018, 6:41 PMmysterious-farmer-45668
08/13/2018, 6:42 PMmysterious-farmer-45668
08/13/2018, 7:00 PM--platform
arg, but trying to find how to make that happen with pantsmysterious-farmer-45668
08/13/2018, 7:09 PMplatforms
! thanks for suggesting that 🙂mysterious-farmer-45668
08/13/2018, 10:24 PMmysterious-farmer-45668
08/13/2018, 10:25 PMpython_binary(
name='foo-entrypoint',
dependencies=[
':foo-base',
],
platforms=['current', 'linux-x86_64'],
source='entrypoint.py',
)