https://pantsbuild.org/ logo
i

incalculable-hydrogen-44003

09/12/2022, 11:28 PM
Hi guys. We are trying to use a module that does not conform to pep naming conventions, so pants isn't picking the dependency up. Any ideas on how to get around this issue? https://github.com/cduck/drawSvg/issues/23
b

busy-vase-39202

09/12/2022, 11:29 PM
h

hundreds-father-404

09/12/2022, 11:31 PM
The dependency exposes a module different than the default Pants uses, e.g. Python's ansicolors exposing colors.
• Python: set the modules field and module_mapping fields.
i

incalculable-hydrogen-44003

09/13/2022, 3:01 AM
Yup! Worked perfectly. Thanks.
❤️ 1