[Answer]-Django: use my FORKED version of an app in some projects, not all of them

0๐Ÿ‘

โœ…

I just found a much better way. Setting up symbolic links is kind of a pain! It turns virtualenv has a built in method to do this.

Modify the path to the package you want to use for that environment in:

yourEnv/Lib/site-packages/packagename.egg.link file. 

If you are using easy-install then modify the package path in:

yourEnv/Lib/site-packages/easy-install.pth

For example:

If you want PROJECT-A to use an app called APP-A located in your github directory. Find the files noted above and modify the path from:

c:\users\someuser\documents\github\PROJECT-A\src\APP-A

to:

c:\users\someuser\documents\github\APP-A

Now PROJECT-A will use the version of APP-A in your working repository rather then the one in your virtualenv. You can now work with the APP-A repository and the changes will automatically be integrated with PROJECT-A without having to push or pull changes.

๐Ÿ‘คArctelix

1๐Ÿ‘

I solve this problem by using symbolic links to apps in my virtual environments whenever I want them to use a shared version.

๐Ÿ‘คJesse the Game

Leave a comment