Hi Mirek,
That's a good point. But for debugging and development purposes, i
prefer using mercurial or git to upgrade my packages. Also, having
access to the source tree while developing your app makes debugging more
convenient than with the python eggs format.
Cheers,
Etienne
Le 2018-02-12 à 09:51, Mirek Zvolsky a écrit :
Hallo Etienne.
System Python and system python modules are provided for all system
applications written in Python (made compatible with distributed
python+modules versions).
Of course you can use it for your applications too, however you have
no control over system upgrades. After a system upgrade you must
always check which python modules were upgraded, and then make sure
that ALL YOUR PYTHON APPS are still compatible with new versions.
Maybe you can just say "ok, my tests have still passed", however I'm
not sure that this is very liable.
With Virtualenv you run always your application(s) so as you have them
developped and debugged. You can upgrade versions only when YOU DECIDE
TO DO SO.
And Virtualenv is so easy today with Python 3! No installation at all:
python3 -m venv ve_application/
. ve_application/bin/activate
That's definitely all.
And you can generate the requirements file: pip freeze > requirements.txt
And you can reinstall all dependencies into a new environment with
single command: pip install -r requirements.txt
Dne sobota 10. února 2018 11:56:00 UTC+1 Etienne Robillard napsal(a):
Salut Pascual,
Le 2018-02-10 à 05:47, PASCUAL Eric a écrit :
If virtualenv is to be avoided /(which I do not recommend anyway,
especially for a newbie, since it protects him from breaking his
Python system installation)/, my advice would be to go with:
$ python setup.py install *--user*
You're not going to break your Python setup just by installing a
package with distutils/setuptools. ;-)
In fact, the purpose of site-packages and dist-packages
directories is to provide a logical layout for Python packages.
There's no need in my opinion to not install Django in a standard
location.
Best regards,
Etienne
--
Etienne Robillard
tka...@yandex.com <javascript:>
https://www.isotopesoftware.ca/ <https://www.isotopesoftware.ca/>
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/6d034405-1eaf-4856-89fc-3d10c10c277b%40googlegroups.com
<https://groups.google.com/d/msgid/django-users/6d034405-1eaf-4856-89fc-3d10c10c277b%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
Etienne Robillard
tkad...@yandex.com
https://www.isotopesoftware.ca/
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/7000639c-8815-0bec-b448-bce979eaf231%40yandex.com.
For more options, visit https://groups.google.com/d/optout.