I like to have my package installable with pip install ... and to use the pyproject.toml standard.
I can specify dependencies to install from git, with:
dependencies = [
'numpy>=1.21',
'psychopy @ git+https://github.com/psychopy/psychopy',
]
But how can I specify a dependency to install from a different indexer, equivalent to:
python -m pip install --pre --only-binary :all: -i https://pypi.anaconda.org/scientific-python-nightly-wheels/simple numpy scipy
With or without the pre-release flag?
And how can I specify a dependency to install from a URL, e.g. https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04/wxPython-4.2.1-cp310-cp310-linux_x86_64.whl I tried with no luck:
dependencies = [
'wxPython @ https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04/wxPython-4.2.1-cp310-cp310-linux_x86_64.whl; python_version == "3.10"; sys_platform == "linux"'
]
from Specify dependencies in pyproject.toml with install URL or with index-url
No comments:
Post a Comment