I think I have a problem with my python lockfile a...
# general
a
I think I have a problem with my python lockfile and CI due to the fact I am building some wheels locally do deal with different platforms. In my
pants.toml
file I have the following:
Copy code
find_links = [
    "file://%(buildroot)s/wheels"
]
This then results in urls in the lockfile with
"url": "file:///Users/scottmelhop/...../wheels/...
Obviously when I push to CI I get errors. Any ideas how to get around this without having to generate lockfiles each time I run CI?
h
You'll probably want to pre-build the wheels for the various platforms and host them on some shared pypi-like artifact server
a
Yeah that’s where I’m leaning
c
as alternative to setting up a custom cheese chop
then you can do something like this in your `pants.toml`:
Copy code
[python-repos]
find_links = ["file://%(buildroot)s/prebuilt_wheels"]
path_mappings = ["WHEELS_DIR|%(buildroot)s/prebuilt_wheels"]
a
Thanks @curved-television-6568 will look into it
h
Oh I forgot we had that, nice!
c
yea, I didn’t know either.. cred goes to @glamorous-tiger-7918 for teaching me about it 😉
❤️ 1
a
Much love to all!
❤️ 1