Open HaHeho opened 1 year ago
Why not install from pypi if you don't want to clone the repo?
Why not install from pypi if you don't want to clone the repo?
The purpose was to use the example notebooks 1) from my SMA example branch (which is not in a PyPI release) or 2) from the main branch (but the notebooks are not included in the PyPI release).
There are, of course, alternatives to make it work. But downloading + installing via conda environment.yml
is also a viable path that should be viable.
Another option is to install directly from a git branch with pip, and then just download the example you want to run and not the entire repo. In my opinion, installing from a downloaded (not cloned) repo is not a good idea since it removes information about what version you installed.
In my opinion, the version is irrelevant if someone installs a local copy that has potentially been modified. A person doing this will never try to do a pip install --upgrade
of the package.
There should be some fallback in order not to prevent a fundamental use case like pip install .
. The fallback version could be "0.0"
or "0.0.dev"
or "0.0.local"
here? https://github.com/AppliedAcousticsChalmers/acoustics-hardware/blob/d18bb6e6848a885d131b885dc0fbdf55654da7e5/acoustics_hardware/_version.py#L66-L67
The ability to detect if the version is modified or not is exactly why I get the version info from the git repo. The only limitation here is that you cannot install from a zipped repo.
There should be some fallback in order not to prevent a fundamental use case like
pip install .
. The fallback version could be"0.0"
or"0.0.dev"
or"0.0.local"
here?
A fallback without raising an exception to prevent the entire process is not viable?
Of course it's possible. I guess I just don't see the point why you would actually need this.
Steps to reproduce:
git clone
) unpack and navigate into directoryconda env create --file environment.yml
The setup process after downloading can be shortened to trigger the error:
Error:
This occurs independent of the python version (I believe I testes
3.9
,3.10
and3.11
). So the issue has probably existed unnoticed for a while (I usually always clone).