Hi guys, I’m trying to follow up the docs to setup...
# general
e
Hi guys, I’m trying to follow up the docs to setup wheels path (find_links) with relative path and getting errors when trying different combinations. This is in my pants.toml:
Copy code
[python-repos]
# Absolute path works
# find_links = ["file:///Users/me/workspaces/the_project/3rdparty/python/wheels"]

# Not working either
# find_links = ["file:///%(buildroot)/3rdparty/python/wheels"]
# find_links = ["%(buildroot)/3rdparty/python/wheels"]
find_links = ["file://%(buildroot)/3rdparty/python/wheels"]
path_mappings = ["WHEELS_DIR|%(buildroot)/3rdparty/python/wheels"]
Errors: Using
file://
Copy code
non-local file URIs are not supported on this platform: 'file://%(buildroot)/3rdparty/python/wheels'
Using
file:///
or skipping the file
file:///
altogether
Copy code
Mapped paths must be absolute. Given: %(buildroot)/3rdparty/python/wheels
I’m using lock files. The executed command is
pants generate-lockfiles
. Thanks for any help
1
l
Hey Martin I think you’re missing an
s
after
%(buildroot)
. I have this working on my project:
Copy code
[python-repos]
find_links = [ "%(buildroot)s/python_wheels" ]
path_mappings = [ "WHEELS_DIR|%(buildroot)s/python_wheels" ]
e
Hi Anler, thanks this solved the issue. I had the
s
in some iteration, but it somehow got away 🤦
l
yeah same happened to me at some point and was a headache!
e
Yeah, you definitely saved me hours and headaches as well 🙏