NREL / mappymatch

Pure-python package for map matching
http://mappymatch.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
58 stars 19 forks source link

Possible pip install -e artifact #129

Closed Rowlando13 closed 2 years ago

Rowlando13 commented 2 years ago

I am working on the environment.yml files for dockerizing tests. I came across this below. Is the - e . ( pip install -e . ) for the pypi build? I was a bit confused since there are no packages nested under it. @nreinicke pip -e

nreinicke commented 2 years ago

Since we're using the environment file to install the package from source we also need to directly install mappymatch into the python environment. pip -e . installs mappymatch using the setup.py file (the -e flag is for editable mode such that if the code changes, you don't need to reinstall the package). If we don't explicitly install via pip the user won't be able to call import mappymatch.

Rowlando13 commented 2 years ago

Got it.