-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add instructions of how to install Linien without internet connection #378
Comments
No other machines should really use the server, and this dependency doesn't hurt any other platform that is used to test the server. This also helps a bit installing the server in an offline manner (linien-org#378), see also: jazzband/pip-tools#1220
If trying to install this package in an offline manner (see also: linien-org/linien#378 ), the metadata pip will put for this installation might be 0.0.0, due to potential compatiblitiy issues with setuptools on the target host (RedPitaya probably). See also: pypa/setuptools-scm#636
OK so today I tried to tackle this today, and this SO Q&A was a bit more helpful for me. I encountered many issues along the way - some of them will be hard to fix and some of them I managed to easily workaround. First of all, these PRs are important:
If all of the above will be accepted, and a new
python -m pip download \
--platform=linux-armv7l \
--no-deps \
linien-server==2.0.4 \
--requirement <(python -m piptools compile \
/path/to/linien/linien-server/pyproject.toml \
--output-file - 2>/dev/null | sed \
-e 's/^\(numpy==1.26.4\|six==1.16.0\|scipy==1.14.0\)/#\0 is available on the target host by the Debian distribution/g' \
)
scp *.whl *.tar.gz [email protected]:
ssh [email protected] pip install --no-index --find-links . linien-server==2.0.4 --no-build-isolation
ssh [email protected] linien-server enable Until the 3 PRs mentioned above are merged, steps 1 and 2 should be slightly modified: python -m pip download \
--platform=linux-armv7l \
--no-deps \
linien-server==2.0.4 \
--requirement <(python -m piptools compile \
<(curl \
--silent \
--location \
https://github.com/doronbehar/linien/raw/pyrp3-all-platforms/linien-server/pyproject.toml \
) --output-file - 2>/dev/null | sed \
-e 's/^\(numpy==1.26.4\|six==1.16.0\|scipy==1.14.0\)/#\0 is available on the target host by the Debian distribution/g' \
) rm pyrp3-2.0.1.tar.gz && python -m pip download --platform=linux-armv7l --no-deps git+https://github.com/doronbehar/pyrp3@no-setuptools_scm And after step 2 run: scp pyrp3-2.0.1.zip [email protected]: And step 3 should work smoothly with the |
Along the lines of https://stackoverflow.com/questions/36725843/installing-python-packages-without-internet-and-using-source-code-as-tar-gz-and
The text was updated successfully, but these errors were encountered: