$ python setup.py sdist running sdist running egg_info creating src/package_with_data.egg-info writing src/package_with_data.egg-info/PKG-INFO writing dependency_links to src/package_with_data.egg-info/dependency_links.txt writing entry points to src/package_with_data.egg-info/entry_points.txt writing top-level names to src/package_with_data.egg-info/top_level.txt writing manifest file 'src/package_with_data.egg-info/SOURCES.txt' reading manifest file 'src/package_with_data.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no previously-included files matching '*.py[cod]' found anywhere in distribution warning: no previously-included files matching '__pycache__' found anywhere in distribution warning: no previously-included files matching '*.so' found anywhere in distribution writing manifest file 'src/package_with_data.egg-info/SOURCES.txt' running check creating package_with_data-0.0.1 creating package_with_data-0.0.1/src creating package_with_data-0.0.1/src/package_with_data.egg-info creating package_with_data-0.0.1/src/packagedata creating package_with_data-0.0.1/src/packagedata/config copying files to package_with_data-0.0.1... copying LICENSE -> package_with_data-0.0.1 copying MANIFEST.in -> package_with_data-0.0.1 copying README.md -> package_with_data-0.0.1 copying setup.cfg -> package_with_data-0.0.1 copying setup.py -> package_with_data-0.0.1 copying src/package_with_data.egg-info/PKG-INFO -> package_with_data-0.0.1/src/package_with_data.egg-info copying src/package_with_data.egg-info/SOURCES.txt -> package_with_data-0.0.1/src/package_with_data.egg-info copying src/package_with_data.egg-info/dependency_links.txt -> package_with_data-0.0.1/src/package_with_data.egg-info copying src/package_with_data.egg-info/entry_points.txt -> package_with_data-0.0.1/src/package_with_data.egg-info copying src/package_with_data.egg-info/not-zip-safe -> package_with_data-0.0.1/src/package_with_data.egg-info copying src/package_with_data.egg-info/top_level.txt -> package_with_data-0.0.1/src/package_with_data.egg-info copying src/packagedata/__init__.py -> package_with_data-0.0.1/src/packagedata copying src/packagedata/getpackagedata.py -> package_with_data-0.0.1/src/packagedata copying src/packagedata/config/test.ini -> package_with_data-0.0.1/src/packagedata/config Writing package_with_data-0.0.1/setup.cfg creating dist Creating tar archive removing 'package_with_data-0.0.1' (and everything under it)
パッケージのインストール
pipコマンドでインストール。
1 2 3 4 5 6 7 8 9 10 11
$ cd dist console_scripts-0.0.1.tar.gz $ pip install package_with_data-0.0.1.tar.gz Processing ./package_with_data-0.0.1.tar.gz Building wheels for collected packages: package-with-data Building wheel for package-with-data (setup.py) ... done Created wheel for package-with-data: filename=package_with_data-0.0.1-py3-none-any.whl size=2338 sha256=6f907b30a1c7b26650c8bec598858ceb917410ffc97c4dde3348c3e24702612a Stored in directory: /root/.cache/pip/wheels/05/c8/a8/fef26a83f0af30cd5c9aece9b54869e169ca26b4d3d5bf7a00 Successfully built package-with-data Installing collected packages: package-with-data Successfully installed package-with-data-0.0.1