Reputation: 215
I created and installed a python package by doing the following: coding a bunch of functions in an init.py file and run 'python setup.py install dist' to create a tar.gz, which was installed through pip. Everything works well and I can import the package and the functions. I decided to add a new function in the init file, and redid the whole procedure described above to reinstall (or update) my package. The new function added doesn't seem to be available when importing the package, even after update. Any ideas on how to update my package?
Upvotes: 3
Views: 1333
Reputation: 215
As @metatoaster suggested, python setup.py develop
reflects changes immediately in the environment, and makes the new functions available.
I haven't tried @Paul H's suggestion which is pip install . -e
.
Thank you both for your comments, problem is solved.
Upvotes: 1