https://pantsbuild.org/ logo
#general
Title
# general
c

clever-hamburger-59716

04/06/2023, 4:30 PM
Hi, what is the recommended way to build platform wheels (as opposed to pure python wheels)?
b

broad-processor-92400

04/06/2023, 8:23 PM
Do you mean first party wheels? As in, from a
Python_distribution
target in pants? (As opposed to third party wheels, like start with the numpy sdist and building it)
c

clever-hamburger-59716

04/06/2023, 9:53 PM
Hi @broad-processor-92400, sorry, that wasn't clear. I mean using extension modules in wheel as opposed to building a multi-platform wheel. For e.g. it looks like one could provide
package_data
for pre-compiled libraries or use
ext_modules
when you have sources in the
setup()
function. I suppose
package_data
is out of question for pants, maybe ext_modules would work? I would like to get the result of
python setup.py bdist_wheel
+
auditwheel repair
in one
./pants package <target>
run.
b

broad-processor-92400

04/07/2023, 8:40 AM
Ah, I see. I don’t know enough about that set up to help. Feel free to bump the thread/reask again if you haven’t made progress or don’t get more help
2 Views