A tool of package libs and dependencies for offline installation
https://github.com/chaokunyang/pyassemble.git
pip install pyassemble
setup.py example
from setuptools import find_packages, setup
from pyassemble.package import Package
setup(
name='pyassembly_example',
author="chaokunyang",
version='1.0',
description='assemble project with all dependencies for install offline',
long_description=open('README.rst').read(),
classifiers=[
'Programming Language :: Python :: 3.6',
'Intended Audience :: Developers',
],
keywords='assembly pyassemble dist offline install dependencies',
url='http://github.com/chaokunyang/pyassemble/example',
license='Apache License 2.0',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
cmdclass={
"package": Package
}
)
Package
python setup.py package
Install
Install dependencies
pip install -r requirements.txt --no-index --find-links wheelhouse
Install project package
pip install .
You can do it manually:
pip download django -d wheelhouse
pip download -r requirements.txt -d wheelhouse
pip install -r requirements.txt --no-index --find-links wheelhouse