Pierre de LESPINAY
Pierre de LESPINAY

Reputation: 46178

Django app - Virtualenv upgrading my package with my project

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

Answers (2)

arie
arie

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

Ciprian Tarta
Ciprian Tarta

Reputation: 494

You can use pip install --upgrade <path>

Have you considered it?

Upvotes: 3

Related Questions