polite-vase-75369
12/22/2020, 7:06 PMhundreds-father-404
12/22/2020, 7:12 PMpython_library
target?polite-vase-75369
12/22/2020, 7:13 PMhundreds-father-404
12/22/2020, 7:17 PMpolite-vase-75369
12/22/2020, 7:18 PMhappy-kitchen-89482
12/22/2020, 7:20 PMhundreds-father-404
12/22/2020, 7:21 PMfiles()
. While you can put Python files in a files()
target, it has some implications:
- dependency inference won’t work for imports of those files
- formatters/linters won’t work when running on them
- Pants won’t add the “source root” to PYTHONPATH, which means it’s possible imports will fail.
While Pants won’t want to add something like relocated_python_library
, we could help you write a plugin for that if y’all were able to upgrade to 2.0.happy-kitchen-89482
12/22/2020, 7:21 PMhundreds-father-404
12/22/2020, 7:22 PMpolite-vase-75369
12/22/2020, 7:23 PM