-
Notifications
You must be signed in to change notification settings - Fork 261
PyPI distribution with pip install
Zhang Yunjun edited this page Jun 24, 2024
·
5 revisions
We recommend installing MintPy with pip in development mode, a.k.a. pip install --editable .
. The development mode allows you to install the package without copying files to your interpreter directory (e.g. the site-packages
directory), thus allowing you to modify/update your source code and have the changes take effect without having to rebuild and reinstall.
mamba create --name mintpy
mamba install build pip setuptools wheel twine --yes
cd $MINTPY_HOME
rm -r build dist *egg-info src/*egg-info
# OLD: python -m setup sdist bdist_wheel
python -m build --sdist --wheel --outdir dist/ .
3. Testing with Test PyPI
python -m twine upload --repository testpypi dist/* --verbose
pip install --index-url https://test.pypi.org/simple/ --no-deps mintpy==1.2.3
4. Upload to PyPI
python -m twine upload dist/* --verbose
pip install mintpy