calm-ambulance-65371
05/12/2022, 3:13 PM./pants package ::. The module in question here packages fine when I run ./pants package module::, so it's not the .whl or the package itself. Looks like it's also trying to print a binary blob, most likely the ziped up .whlcalm-ambulance-65371
05/12/2022, 3:13 PM2.11.0hundreds-father-404
05/12/2022, 3:19 PMpython_distribution targets in the same BUILD file perhaps?calm-ambulance-65371
05/12/2022, 3:19 PMpython_distribution(
name="qc_circuit_runner",
dependencies=[
"qc_circuit_runner/coldquanta/qc_circuit_runner",
],
provides=python_artifact(
name="coldquanta.qc_circuit_runner",
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
],
python_requires=">=3.6.*,<4",
),
# python_artifact_commands=["bdist_wheel", "--python-tag", "py36.py38"]
)hundreds-father-404
05/12/2022, 3:21 PM2022?calm-ambulance-65371
05/12/2022, 3:27 PMversion tag for uscalm-ambulance-65371
05/12/2022, 3:27 PMhundreds-father-404
05/12/2022, 3:31 PM./pants filter --target-type=python_distribution :: vs ./pants filter --target-type=python_distribution module:: to be confident there aren't more targets than expectedhundreds-father-404
05/12/2022, 3:32 PMpython_distribution does not use output_path like all the other package types, e.g. https://www.pantsbuild.org/docs/reference-pex_binary#codeoutput_pathcode. That means I think there is indeed some risk of multiple targets having naming conflicts
Your BUILD file seems obvious tho..so I'm pretty confusedcalm-ambulance-65371
05/12/2022, 4:51 PMcalm-ambulance-65371
05/12/2022, 4:53 PMsdist=False,
wheel_config_settings={"--global-option": ["--python-tag", "py36.py37.py38.py39"]},
fixed it 🤷calm-ambulance-65371
05/12/2022, 4:54 PMsdist=False is what fixed ithundreds-father-404
05/12/2022, 4:59 PM.whl file being produced!hundreds-father-404
05/12/2022, 5:00 PMcalm-ambulance-65371
05/12/2022, 5:59 PMhundreds-father-404
05/12/2022, 6:07 PMcalm-ambulance-65371
05/12/2022, 6:22 PMcalm-ambulance-65371
05/12/2022, 6:26 PMcalm-ambulance-65371
05/12/2022, 6:37 PM2.10.1rccalm-ambulance-65371
05/12/2022, 6:38 PMcalm-ambulance-65371
05/12/2022, 7:20 PM