Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
220 views
in Technique[技术] by (71.8m points)

How to build and install a Python package locally without uploading to PyPI?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Your command is searching for the package in PyPi, which won't work because you haven't published the package there.

To install a local package, you should be able to just run pip install path_containing_fdroid_build_checker/froid_buildchecker

You'll have to make sure that your package contains a setup.py file (1) in order for pip to build a wheel and install it successfully.

See https://stackoverflow.com/a/41537134/2741222

1 - https://packaging.python.org/tutorials/packaging-projects/#creating-setup-py


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...