straight-action-80318
07/20/2022, 9:16 PMpex_binary
the subprocesses don’t seem to have the same dependencies available. Do I need to manually set something to propagate environments to spawned processes?high-yak-85899
07/20/2022, 10:03 PMpip.conf
file? I'll admit I haven't tried this to see what happens yet.incalculable-grass-76623
07/21/2022, 12:38 AMgenrule()
- run a command, that outputs files s part of the build (is that experimental_shell_command
) or something else?nice-florist-55958
07/21/2022, 1:48 AMabundant-hospital-56388
07/21/2022, 8:31 AMexecution_mode = "venv"
for the target.
In particular I get the error ImportError: Failed to import any qt binding
even though
This might also apply for other external matplotlib backends.
More details and example code will follow in the thread.rhythmic-morning-87313
07/21/2022, 12:25 PMinterpreter_constraints
to some tool config sections in pants.toml
results in the following error only in macOS, not Linux (a self-built version) -- where both platform uses 2.12.0 and pex 2.1.99. Am I missing something...?:sparse-lifeguard-95737
07/21/2022, 2:02 PMImportError: No module named __pants_df_parser
when it hits, it hits at the beginning of a job during dependency-parsing (we use --changed-since
) so I don’t think it’s a resource-exhaustion issue. the jobs always succeed on a retry. at this point I’m trying to export more data from the CI jobs as artifacts to help me figure out what’s going on - does anyone have pointers? I’m thinking of running with --no-process-cleanup
and exporting the PANTS_LOCAL_EXECUTION_ROOT_DIR
- should I also grab named caches?quaint-photographer-11567
07/21/2022, 2:28 PMnice-florist-55958
07/21/2022, 5:53 PMqPythhon -> qpython
,Sphinx -> sphinx
, etc. I haven't confirmed, but it's almost as-if it converts the distribution name to the exposed module name (but that would be even more surprising!).nice-florist-55958
07/21/2022, 6:07 PMpython_requirements
. With pants*d* these changes are not detected of course (and I guess this demonstrates open
or other builtin functions are no exception to the rationale for prohibiting imports in BUILD files as they can "easily break Pant's cacheing mechanisms"). I haven't messed with macros yet, but would these two use cases be solved by them? Or is there a way to manually invalidate a file pattern when invoking pants w/ pantsd enabled?rhythmic-glass-66959
07/21/2022, 7:06 PMconfig
option is not supported under [pytest]
like most other tools?fast-nail-55400
07/21/2022, 7:26 PMpyenv
? Do I need to delete a venv or something else?rhythmic-glass-66959
07/21/2022, 7:53 PMrhythmic-glass-66959
07/21/2022, 8:25 PMpylint
. I could open an issue if you think this is something worth adding...
[pylint]
args = ["--output-format=text:reports/report.txt"]
happy-kitchen-89482
07/21/2022, 11:38 PMexperimental_shell_command
uses Pants's code generation mechanism. So files it creates are placed in the sandbox of downstream processes that need source fileshappy-kitchen-89482
07/21/2022, 11:39 PM./pants export-codegen path/to/experimental_shell_command:target
happy-kitchen-89482
07/21/2022, 11:39 PMexport-codegen
is a goal that runs codegen on the specified targets and exports the output under dist/happy-kitchen-89482
07/21/2022, 11:40 PMhappy-kitchen-89482
07/21/2022, 11:40 PMhappy-kitchen-89482
07/21/2022, 11:40 PMhappy-kitchen-89482
07/21/2022, 11:41 PMhappy-kitchen-89482
07/21/2022, 11:41 PMproud-dentist-22844
07/22/2022, 12:16 AMsetuptools
and wheel
in my [build-system].requires
list. Otherwise I get errors about error: invalid command 'bdist_wheel'
.
So, I’ve got my metadata in pyproject.toml, with generate_setup = False
on my python_distribution
which is working. But none of the metadata from [project]
is making it into my wheel. Turns out I have to have setuptools 61+ to use that. So, now I’m working on updating my build-system.requires to make that work…proud-dentist-22844
07/22/2022, 12:23 AMproud-dentist-22844
07/22/2022, 12:23 AMproud-dentist-22844
07/22/2022, 12:29 AMfierce-keyboard-91032
07/22/2022, 10:51 AM./pants test
? It is causing undefined behaviors in Django because the tests are using the same test database.incalculable-grass-76623
07/22/2022, 12:00 PMPants
have something similar to Please
's style of plz build //path/to:target --shell
incalculable-grass-76623
07/22/2022, 12:02 PMrhythmic-glass-66959
07/22/2022, 1:35 PMlockfile
for each tool and use the export
command to allow my editor (VSCode) to use the same version
of the tool that Pants uses for workflows. This works great for most of the tools, except for pylint
.
VSCode complaints that it is unable to import 3rd party packages (pylint(import-error)
). Take note that Pants lint
command works as expected. I suspect this is because 3rd party packages are installed in python-default
venv and not in pylint
tool venv. Anybody has this problem? I know it is not a Pants problem per say, but more an IDE integration issue...