dazzling-elephant-33766
07/01/2024, 3:37 PMpython_sources(
name="root",
)
python_requirement(
name="aenum",
requirements=["aenum==3.1.15"],
)
pex_binary(
name="app",
entry_point="app.py",
layout="loose",
)
After running pants package :app
there’s a particular file _py2.py
that I don’t want included
ls dist/app.pex/.deps/aenum-3.1.15-py3-none-any.whl/aenum/_py2.py
dist/app.pex/.deps/aenum-3.1.15-py3-none-any.whl/aenum/_py2.py
Does pants let you control these files with any level of granularity?broad-processor-92400
07/01/2024, 10:13 PMlayout="loose"
this should be as easy as rm .../_py2.py
)
2. describing more about the background and there might be another way to handle it 🤷♂️dazzling-elephant-33766
07/02/2024, 9:40 AMaenum
is a transitive dependency of one of our deps.
We’re uploading this to google cloud, which runs python3 -m compileall -f -q .
before deployment.
The _py2.py
contains a bunch of legacy py2 syntax that fails for py3