Question on virtualenv (python) and FreeBSD
Alfred Perlstein
alfred at freebsd.org
Sat May 31 23:16:42 UTC 2014
On 5/31/14 3:51 PM, Marcus von Appen wrote:
> On, Sat May 31, 2014, Alfred Perlstein wrote:
>
>
>> 3) other?
>>
>> thank you Marcus.
> I won't block the process in either direction here, since I am generally
> pretty indifferent about pulling in sqlite3 as dependency for lang/python. It
> is wide-spread enough that it would end up on a majority of web application
> systems anyway (although most large-scale web apps probably will use a
> scalable database back-end, such as mysql, pg or oracle).
>
> Which brings me to the target group for your request: it'd be (mostly)
> developers, not? Which would bring me to the toolchain script and FAQ and
> responsibility over the dev machines again :-).
>
> [1] https://docs.djangoproject.com/en/dev/intro/install/
Sure, that's how to install it onto the host when using a single version
of django AND it requires root for that. Virtualenv (once installed)
lets people install almost all packages as non-root and leaves the worry
off of the sysadmin.
If you google "django virtualenv" you'll get this list of links:
http://www.jeffknupp.com/blog/2012/02/09/starting-a-django-project-the-right-way/
http://thecodeship.com/deployment/deploy-django-apache-virtualenv-and-mod_wsgi/
https://docs.djangoproject.com/en/1.6/topics/install/ :
"(optional) Take a look at virtualenv and virtualenvwrapper. These tools
provide isolated Python environments, which are more practical than
installing packages systemwide. They also allow installing packages
without administrator privileges. It’s up to you to decide if you want
to learn and use them."
http://www.tonido.com/blog/index.php/2013/11/25/working-with-virtualenv-on-django-projects/#.U4phVZRdX2g
https://community.webfaction.com/questions/4253/simple-virtualenv-usage-with-django
I really believe the only blocker is sqlite right now.
What I really want is people to be able to use virtualenv without having
to switch OS, because the method I recommend is way complex.
Both python and ruby teams are heavily recommending these "virtual
environments" we should support it out of the box, particularly since
the change seems very light.
-Alfred
More information about the freebsd-python
mailing list