mirror of
https://github.com/not-kennethreitz/convore.json.git
synced 2026-06-05 23:20:19 +00:00
1 line
6.4 KiB
JSON
1 line
6.4 KiB
JSON
[{"user_id": 10377, "stars": [], "topic_id": 17380, "date_created": 1302010765.938735, "message": "I've started using virtualenv and I can see how it's great for testing out new libraries, but how do you use it when you're developing a package?", "group_id": 292, "id": 540809}, {"user_id": 10377, "stars": [], "topic_id": 17380, "date_created": 1302010891.9738779, "message": "Do you set up the environment and then edit inside site-packages/package directory? I usually use Eclipse and pyDev so I guess I would set my project to live inside the site-packages directory and skip having it create the pesky 'src' dir. How do you use virtualenv when you're coding up a package? thanks,", "group_id": 292, "id": 540837}, {"user_id": 3978, "stars": [{"date_created": 1302017719.970293, "user_id": 141}, {"date_created": 1302021717.4033301, "user_id": 1822}, {"date_created": 1302423143.608994, "user_id": 3409}, {"date_created": 1302427395.9505081, "user_id": 5296}, {"date_created": 1302552283.2408521, "user_id": 15511}], "topic_id": 17380, "date_created": 1302013892.850687, "message": "or from the current dir: pip install -e .", "group_id": 292, "id": 541493}, {"user_id": 13325, "stars": [], "topic_id": 17380, "date_created": 1302012492.836334, "message": "There is also .pth files that sit in site-packages and point to other places.", "group_id": 292, "id": 541217}, {"user_id": 13325, "stars": [], "topic_id": 17380, "date_created": 1302012477.1467459, "message": "I learned it's not hard to create a setup.py and use that. I've developed in the source directory then when I had a good point I did. python setup.py install in my virtualenv.", "group_id": 292, "id": 541213}, {"user_id": 13325, "stars": [], "topic_id": 17380, "date_created": 1302012424.0239501, "message": "Depends how you want to develop it. Also depends on what the library is for. If you're testing directly against it. It can easily be in its own directory somewhere. Run the interpretor inside the directory and it will be in the path.", "group_id": 292, "id": 541202}, {"user_id": 22480, "stars": [{"date_created": 1302025103.918978, "user_id": 141}, {"date_created": 1302062004.1004479, "user_id": 18985}, {"date_created": 1302552290.74821, "user_id": 15511}], "topic_id": 17380, "date_created": 1302013524.229821, "message": "If you have a setup.py, you can do: python setup.py develop ... You will be able to edit on the fly in the directory itself.", "group_id": 292, "id": 541435}, {"user_id": 10377, "stars": [{"date_created": 1302423141.266233, "user_id": 3409}], "topic_id": 17380, "date_created": 1302015527.862221, "message": "oh, I see. I didn't know about the -e switch. That's the thing then. I can setup my working dir anywhere I want and play with the actual virtualenv as I code. thanks a lot!", "group_id": 292, "id": 541794}, {"user_id": 7376, "stars": [{"date_created": 1302368588.6815281, "user_id": 6415}], "topic_id": 17380, "date_created": 1302019284.7344351, "message": "@emperorcezar you forgot to mention to use \"python setup.py develop\" to put the your project in \"development\" mode, which I think puts a .pth file in your environment's site-packages. It makes development super easy, you don't have to hack sys.path, or create symlinks", "group_id": 292, "id": 542619}, {"user_id": 13325, "stars": [], "topic_id": 17380, "date_created": 1302024841.183126, "message": "@ericmoritz You're correct, I did. Forgot about that one.", "group_id": 292, "id": 543686}, {"user_id": 16188, "stars": [], "topic_id": 17380, "date_created": 1302378349.398607, "message": "\"python setup.py develop\" and \"pip install -e .\" functionally do the same thing... it's just the \"pip\" method is more pip-friendly for site-packages", "group_id": 292, "id": 605139}, {"user_id": 205, "stars": [], "topic_id": 17380, "date_created": 1302407348.219662, "message": "And the pip method doesn't require setuptools", "group_id": 292, "id": 607806}, {"user_id": 13912, "stars": [], "topic_id": 17380, "date_created": 1302450906.9106059, "message": "I use setuptools with setup.py develop, out of habit, but I'm trying to change it for pip install -e", "group_id": 292, "id": 610234}, {"user_id": 2810, "stars": [], "topic_id": 17380, "date_created": 1302450152.2686989, "message": "For every project I use a setup like \"~/Code/env/projectname\" and \"~/Code/projectname\". I have some shell aliases like activate_env which I call within the \"~/Code/projectname\" folder and start developing. This makes it easy for me to rebuild or upgrade an env afterwards. Also it makes it easy to put \"~/Code/projectname\" into a repository...", "group_id": 292, "id": 610141}, {"user_id": 2810, "stars": [], "topic_id": 17380, "date_created": 1302450309.0981679, "message": "I've also a wrapper script which can be used like this: \"vrun.sh ~/Coded/projectname/main.py\". It tries to activate the matching virtualenv, goes into the \"projectname\" folder and runs \"main.py\" with optional arguments... This way I can call the \"build\" command from Sublime Text 2 without problems :).", "group_id": 292, "id": 610150}, {"user_id": 1760, "stars": [{"date_created": 1302462025.9646809, "user_id": 5778}, {"date_created": 1302521641.9017379, "user_id": 927}], "topic_id": 17380, "date_created": 1302461140.024359, "message": "@theblacklion Have you tried Virtualenvwrapper?", "group_id": 292, "id": 612353}, {"user_id": 215, "stars": [], "topic_id": 17380, "date_created": 1302467049.8168299, "message": "@ericholscher yes it does https://github.com/pypa/pip/blob/master/pip/req.py#L618-621 :-)", "group_id": 292, "id": 613339}, {"user_id": 205, "stars": [], "topic_id": 17380, "date_created": 1302467198.8327031, "message": "@brosner it doesn't require the _project_ to use setuptools, I mean.", "group_id": 292, "id": 613356}, {"user_id": 215, "stars": [], "topic_id": 17380, "date_created": 1302467320.220355, "message": "true, but either way you have setuptools installed. abstractions ftw.", "group_id": 292, "id": 613367}, {"user_id": 1930, "stars": [], "topic_id": 17380, "date_created": 1302550722.706321, "message": "virtualenv 1.6 & python 3(3.2) - I happily grabbed the new virtualenv, but so far no happiness trying to use w/ python3 (when my default is python2.6 => python). Anyone done this, have hints?", "group_id": 292, "id": 628417}, {"user_id": 1930, "stars": [], "topic_id": 17380, "date_created": 1302620338.910177, "message": "If anyone has used the newest virtualenv w/ python 3, I'd like to hear about it. Thanks!", "group_id": 292, "id": 643620}] |