rich-london-74860
02/23/2024, 3:22 PMsetup-py-generation
generates a setup.py
for a python_distribution
target, but is it possible to actually output the setup.py
file?gentle-flower-25372
02/23/2024, 3:38 PMsetup.py
.broad-processor-92400
02/23/2024, 5:54 PMpants export-codegen path/to:target
can output the codegen for some things. Does it work for this case?rich-london-74860
02/23/2024, 8:48 PMsetup.py
that I need in the sandbox! Specifically, in the sandbox for Run setuptools.build_meta:__legacy__
. Unfortunately, the reason I need to do this in the first place is because for this particualr target, package
takes extremely long to run. If I need to use --keep-sandboxes=always
, then I still need to run package
. However, this does lead me in the right direction to find out if there's a way to generate setup.py
without package
Re: @broad-processor-92400 - It looks like that specifically need an export-codegen
target?
15:48:03.95 [WARN] No codegen files/targets matched. All codegen target types: experimental_wrap_as_python_sources, experimental_wrap_as_resources, file, resource, vcs_version
gentle-flower-25372
02/23/2024, 8:52 PMexport-codegen
is a "goal" -- so...
pants export-codegen <target>
If you need help finding the target you can list them all with
pants list ::
rich-london-74860
02/23/2024, 8:57 PMexport-codegen
gentle-flower-25372
02/23/2024, 8:57 PMrich-london-74860
02/23/2024, 9:00 PMpython_distribution
, according to that error message, it says I need
experimental_wrap_as_python_sources, experimental_wrap_as_resources, file, resource, vcs_version
broad-processor-92400
02/23/2024, 9:01 PMpath/to::
? In case it’s under a different namehappy-kitchen-89482
02/24/2024, 12:37 AMexport-codegen
won't do it