`python setup.py develop` doesnt work
when installed with develop
, we get the following error:
$ parallel_bilby_generation config.ini
Traceback (most recent call last):
File "/fred/oz117/avajpeyi/.conda/envs/parallel_bilby/bin/parallel_bilby_generation", line 11, in <module>
load_entry_point('parallel-bilby', 'console_scripts', 'parallel_bilby_generation')()
File "/fred/oz117/avajpeyi/.conda/envs/parallel_bilby/lib/python3.8/site-packages/pkg_resources/__init__.py", line 490, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/fred/oz117/avajpeyi/.conda/envs/parallel_bilby/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2862, in load_entry_point
return ep.load()
File "/fred/oz117/avajpeyi/.conda/envs/parallel_bilby/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2462, in load
return self.resolve()
File "/fred/oz117/avajpeyi/.conda/envs/parallel_bilby/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2468, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
ModuleNotFoundError: No module named 'parallel_bilby'
The benifit of using develop
vs install
is that develop
makes a .egg-link
file in site-packages directory which links to your project’s source code (so you can easily swithc branches etc and dont need to re-install the package).