Asken
Asken

Reputation: 8061

Version control my python projects resource files

I'm currently moving a project between home and work using svn. The IDE I'm using is PyCharm which I find awsome. I get everything integrated into one tool.

PyCharm has the ability to create a setup.py from the virtualenv for me that I also commit to svn.

By default PyCharm is adding files to my svn repo with full recursion.

Should I also let PyCharm add the Include and Lib folders of my project and the Scripts folder? I run version 2.6 at work and 2.7 at home but I don't really want that to matter either since code wise it doesn't.

To me it seems better if that is updated on the other machine running python setup.py.

Upvotes: 0

Views: 267

Answers (1)

Piotr Dobrogost
Piotr Dobrogost

Reputation: 42445

Include, Lib and Scripts folders being part of virtualenv are not part of your project thus they should not be under vcs control. You might find PyCharm: versioning .idea folder while keeping different interpreters across developers interesting as well. In addition you might want to take a look at pip requirements file as a mean to recreate the same environment for your project on different computers.

Upvotes: 1

Related Questions