This module provides functionality to pack conda environments and their dependencies into a specified directory.
Project description
PACKING-PACKAGES
This module provides functionality to pack conda environments and their dependencies into a specified directory.
You can use this package to migrate a conda environment to another offline machine with the same operating system.
Install
# Need python, setuptools, pip package
pip install packing-packages
How to use
see --help.
Pack
packing-package pack -d .
Install
packing-package install .
Example
Source device
conda activate <envname>
python -m pip install packing-packages
python -m packing_packages pack -d .
Destination device (offline)
conda create -yn <envname> --offline
conda activate <envname>
conda install --use-local --offline ./conda/*
python -m pip install --no-deps --no-build-isolation ./pypi/*
Notes
If you want to use pip to download from a source other than pypi.org (e.g. pytorch), the above will not completely collect. You will see packages that failed to download, so you will have to download them manually. This is very complicated and we do not plan to support it.
# install command
pip install torch==2.5.1 --index-url https://download.pytorch.org/whl/cu124
# download command
# --no-deps: only target package
# -d: destination directory to download
pip download torch==2.5.1 --index-url https://download.pytorch.org/whl/cu124 --no-deps -d .
Some older packages may not install with pip install. In this case, you may succeed by installing only the failed packages with the --use-pep517 option.
Please perform this manually.
There are two methods of installation: one is to use the standard functions of conda and pip, and the second is to use the paciking-package install command, which wraps them. The advantages of each are summarized in the table below.
| Commands | Advantages | Disadvantages |
|---|---|---|
conda install or pip install |
Fast | Stop immediately when cause error |
packing-package install |
Skip when error occurs and tell you the package | Slow |
If you have an env file (.yaml), please create a virtual environment from it and then pack it.
# on online device with same OS
conda env create -f=env_name.yml
conda activate <env_name>
python3 -m pip install packing-packages
packing-packages pack -d .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file packing_packages-0.1.0rc0.tar.gz.
File metadata
- Download URL: packing_packages-0.1.0rc0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86964cb15a37ef5d48604db872b21f24a1e73cc8a4197182b3e396974b941bb4
|
|
| MD5 |
3484c64a3023b3848ee8782b5584d88a
|
|
| BLAKE2b-256 |
829b650e44bf55e14329517af458f06105105cd93257d8dda07e316f2fa03d0f
|
Provenance
The following attestation bundles were made for packing_packages-0.1.0rc0.tar.gz:
Publisher:
release-pypi.yml on yu9824/packing-packages
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
packing_packages-0.1.0rc0.tar.gz -
Subject digest:
86964cb15a37ef5d48604db872b21f24a1e73cc8a4197182b3e396974b941bb4 - Sigstore transparency entry: 229539716
- Sigstore integration time:
-
Permalink:
yu9824/packing-packages@77e7680cce9c28cf85aae5e79a9ec867edab9958 -
Branch / Tag:
refs/tags/v0.1.0-rc.0 - Owner: https://github.com/yu9824
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@77e7680cce9c28cf85aae5e79a9ec867edab9958 -
Trigger Event:
push
-
Statement type:
File details
Details for the file packing_packages-0.1.0rc0-py3-none-any.whl.
File metadata
- Download URL: packing_packages-0.1.0rc0-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f36a09f07553880c74cf3d7df224e65a10d2cb041af23694e9deb6bca6814663
|
|
| MD5 |
a50dcaf5b7f63e5da474751dcb0380c3
|
|
| BLAKE2b-256 |
7857e816a16cd412bd8ab90d787a6b95c3e81eeec6d953ec4a80d7edea7f3e28
|
Provenance
The following attestation bundles were made for packing_packages-0.1.0rc0-py3-none-any.whl:
Publisher:
release-pypi.yml on yu9824/packing-packages
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
packing_packages-0.1.0rc0-py3-none-any.whl -
Subject digest:
f36a09f07553880c74cf3d7df224e65a10d2cb041af23694e9deb6bca6814663 - Sigstore transparency entry: 229539717
- Sigstore integration time:
-
Permalink:
yu9824/packing-packages@77e7680cce9c28cf85aae5e79a9ec867edab9958 -
Branch / Tag:
refs/tags/v0.1.0-rc.0 - Owner: https://github.com/yu9824
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@77e7680cce9c28cf85aae5e79a9ec867edab9958 -
Trigger Event:
push
-
Statement type: