Y
Hacker News
new
|
ask
|
show
|
jobs
by
smaddox
568 days ago
I've been using this for a few weeks now, and it's really handy. But I did learn the hard way that it fails if you don't have internet connection, even if you already have the venv cached.
2 comments
usrme
568 days ago
That's really unexpected! I'd default to the assumption that it would "just work" if all the dependencies are already met.
link
BiteCode_dev
568 days ago
`--offline` :)
link
chippiewill
568 days ago
Except you can't put that in the shebang for the first run
link
BiteCode_dev
567 days ago
True, for servers you can't warm up, shiv is your best bet:
https://shiv.readthedocs.io/
Or points to your own private pypi instance with --index-url.
link