Closed baagaard-usgs closed 2 years ago
Yes, pip install -e .
works for me without the setup.py
file. I believe that this could just be a pip version issue. What version do you have? I have 22.2.2. Adding the minimal setup.py would probably help for people that have older versions of pip, or we could include in the documentation a minimum required pip version.
This was using v20.0.2 (came from system Python on Ubuntu 20.04). Upgrading the pip in my virtual environment resolved the issue.
Adding the minimal setup.py
is probably a good idea. I will submit a PR.
@jmfee-usgs mentioned to me that the version of setuptools also matters. Rather than adding the minimal setup.py, we could just add commands to the install instructions for getting newer versions of setuptools and pip. This would reduce file clutter, which would be nice.
Yes, if you have a much older version of setuptools, then even this solution probably doesn't work. I think this solution is very small and simple and will work in most real situations.
setup.py
is now missing from the source repository. If I try to do an editable install viapip install -e .
, I get:Proposed solution
Add a minimal
setup.py
file:@emthompson-usgs Do you have an editable install working on your machine without this?