Reputation: 46178
Here is the context:
I have a project with an app that I just packaged following the standard packaging tutorial for django app
my-app $ python setup.py sdist
I've installed my app into my project
(myenv)myproject $ pip install path/to/my-app/packaged
Now when I need to modify my app, I do the modifications, then
my-app $ python setup.py sdist
(myenv)myproject $ pip uninstall my-app
(myenv)myproject $ pip install path/to/my-app/packaged
Shouldn't there be an easier manner to accomplish this ?
Update
My idea is to upgrade both my project and my app, so I'll have a lot of commits going through.
Then when I think my app is versionable I'd package it. (Not sure I had been clear)
Upvotes: 4
Views: 96
Reputation: 18972
If you want to edit your app and actually see the changes in your project without reinstalling/upgrading your app each time something changed, you could install your app in editable mode:
pip install -e path/to/yourproject
Upvotes: 3
Reputation: 494
You can use pip install --upgrade <path>
Have you considered it?
Upvotes: 3