Re: virtualenv and make DESTDIR=

2022-03-06 Thread Barry
> On 6 Mar 2022, at 16:53, Peter J. Holzer wrote: > > On 2022-03-05 17:59:48 +0100, Marco Sulla wrote: >>> On Sat, 5 Mar 2022 at 17:36, Barry Scott wrote: >>> Note: you usually cannot use pip when building an RPM with mock as the >>> network is disabled inside the build for >>> security reas

Re: virtualenv and make DESTDIR=

2022-03-06 Thread Peter J. Holzer
On 2022-03-05 17:59:48 +0100, Marco Sulla wrote: > On Sat, 5 Mar 2022 at 17:36, Barry Scott wrote: > > Note: you usually cannot use pip when building an RPM with mock as the > > network is disabled inside the build for > > security reasons. > > Can't he previously download the packages and run p

Re: virtualenv and make DESTDIR=

2022-03-06 Thread Barry Scott
> On 5 Mar 2022, at 19:56, Hartmut Goebel wrote: > > Am 05.03.22 um 17:34 schrieb Barry Scott: >> Have the RPM install all the pythone code and dependencies and also install >> a short script that >> sets up PYTHONPATH, LD_LIBRARY_PATH, etc and execs the python3 .py. > The scripts are already

Re: virtualenv and make DESTDIR=

2022-03-05 Thread Barry Scott
> On 5 Mar 2022, at 19:56, Hartmut Goebel wrote: > > Am 05.03.22 um 17:34 schrieb Barry Scott: >> Have the RPM install all the pythone code and dependencies and also install >> a short script that >> sets up PYTHONPATH, LD_LIBRARY_PATH, etc and execs the python3 .py. > The scripts are already

Re: virtualenv and make DESTDIR=

2022-03-05 Thread Barry Scott
> On 5 Mar 2022, at 19:56, Hartmut Goebel wrote: > > Am 05.03.22 um 17:34 schrieb Barry Scott: >> Have the RPM install all the pythone code and dependencies and also install >> a short script that >> sets up PYTHONPATH, LD_LIBRARY_PATH, etc and execs the python3 .py. > The scripts are already

Re: virtualenv and make DESTDIR=

2022-03-05 Thread Hartmut Goebel
Am 05.03.22 um 17:34 schrieb Barry Scott: Have the RPM install all the pythone code and dependencies and also install a short script that sets up PYTHONPATH, LD_LIBRARY_PATH, etc and execs the python3 .py. The scripts are already created by entry-points. So basically this means to reinvent th

Re: virtualenv and make DESTDIR=

2022-03-05 Thread Kirill Ratkin
Hi, As far I know there is tool rpmvenv (https://github.com/kevinconway/rpmvenv). Try it, maybe ot helps. 04.03.2022 16:03, Hartmut Goebel wrote: Hi, How can I make installing a virtual environment honor DESTDIR? How can I install a virtual environment in $(DESTDIR)$(PREFIX), which behaves

Re: virtualenv and make DESTDIR=

2022-03-05 Thread Barry Scott
> On 5 Mar 2022, at 16:59, Marco Sulla wrote: > > On Sat, 5 Mar 2022 at 17:36, Barry Scott wrote: >> Note: you usually cannot use pip when building an RPM with mock as the >> network is disabled inside the build for >> security reasons. > > Can't he previously download the packages and run

Re: virtualenv and make DESTDIR=

2022-03-05 Thread Marco Sulla
On Sat, 5 Mar 2022 at 17:36, Barry Scott wrote: > Note: you usually cannot use pip when building an RPM with mock as the > network is disabled inside the build for > security reasons. Can't he previously download the packages and run pip on the local packages? -- https://mail.python.org/mailman

Re: virtualenv and make DESTDIR=

2022-03-05 Thread Barry Scott
> On 4 Mar 2022, at 13:03, Hartmut Goebel wrote: > > Hi, > > How can I make installing a virtual environment honor DESTDIR? How can I > install a virtual environment in $(DESTDIR)$(PREFIX), which behaves as being > set-up in $(PREFIX)? (Of course, this virtual environment can not be used. My

virtualenv and make DESTDIR=

2022-03-04 Thread Hartmut Goebel
Hi, How can I make installing a virtual environment honor DESTDIR? How can I install a virtual environment in $(DESTDIR)$(PREFIX), which behaves as being set-up in $(PREFIX)? (Of course, this virtual environment can not be used. My aim is to ship it as part of a rpm package) In Makefiles is

Ansible, pip and virtualenv

2021-10-31 Thread Albert-Jan Roskam
Hi I wrote an Ansible .yml to deploy a Flask webapp. I use python 3.6 for the ansible-playbook executable. The yml starts with some yum installs, amongst which python-pip. That installs an ancient pip version (v9). Then I create a virtualenv where I use a requirements.txt for pip

Re: Running virtualenv to set the ENV

2019-04-25 Thread Rich Shepard
On Thu, 25 Apr 2019, Cameron Simpson wrote: Personally, I like to treat the virtualenv as a source for third party modules needed by the project. I explicitly do not like to pollute it with project code - that way revision control can ignore the whole venv tree and it can be blown away/rebuilt

Re: Running virtualenv to set the ENV

2019-04-24 Thread dieter
Rich Shepard writes: > Which is the CWD for running virtualenv and spcifying the path to the > project's directoy? I mentioned "virtualenv" together with "setuptools". "virtualenv" gives you a (light weight) isolated Python installation (sharing thing

Re: Running virtualenv to set the ENV

2019-04-24 Thread Chris Angelico
On Thu, Apr 25, 2019 at 2:38 PM Cameron Simpson wrote: > > On 25Apr2019 12:05, Chris Angelico wrote: > >> venv-requirements.txt > >> Periodically I run "pip freeze >venv-requirements.txt"; this file is > >> revision controlled. That way I can rebuild an equivalent venv > >> somewhere else l

Re: Running virtualenv to set the ENV

2019-04-24 Thread Cameron Simpson
On 25Apr2019 12:05, Chris Angelico wrote: venv-requirements.txt Periodically I run "pip freeze >venv-requirements.txt"; this file is revision controlled. That way I can rebuild an equivalent venv somewhere else later. Any particular reason for this name? If not, I would generally recomme

Re: Running virtualenv to set the ENV

2019-04-24 Thread Chris Angelico
>>bash integration that means that any time it sees a directory called > >>"env", it auto-activates that venv.) So the venv is inside the app (and, > >>of course, mentioned in .gitignore). > > > >ChrisA, > > > >Thanks for sharing your approac

Re: Running virtualenv to set the ENV

2019-04-24 Thread Cameron Simpson
ivates that venv.) So the venv is inside the app (and, of course, mentioned in .gitignore). ChrisA, Thanks for sharing your approach. Rather than use the built-in venv I installed virtualenv in the project's root directory (and added bin/, include/, and lib/ in .gitignore). While it's w

Re: Running virtualenv to set the ENV

2019-04-24 Thread Rich Shepard
o-activates that venv.) So the venv is inside the app (and, of course, mentioned in .gitignore). ChrisA, Thanks for sharing your approach. Rather than use the built-in venv I installed virtualenv in the project's root directory (and added bin/, include/, and lib/ in .gitignore). While it

Re: Running virtualenv to set the ENV

2019-04-24 Thread Rich Shepard
oject directory tree is already establilshed. What I did was install virtualenv and activate it when I work on the project code. Regards, Rich -- https://mail.python.org/mailman/listinfo/python-list

Re: Running virtualenv to set the ENV

2019-04-24 Thread Chris Angelico
On Thu, Apr 25, 2019 at 8:55 AM Dennis Lee Bieber wrote: > > On Wed, 24 Apr 2019 09:17:28 -0700 (PDT), Rich Shepard > declaimed the following: > > >I've installed virtualenv in Slackware-14.2. Now I want to set up the ENV > ><https://virtualenv.pypa.io/en/stable

Re: Running virtualenv to set the ENV [RESOLVED]

2019-04-24 Thread Rich Shepard
On Wed, 24 Apr 2019, Rich Shepard wrote: Which is the CWD for running virtualenv and spcifying the path to the project's directoy? The project's subdirectory. It's up and running now. Rich -- https://mail.python.org/mailman/listinfo/python-list

Running virtualenv to set the ENV

2019-04-24 Thread Rich Shepard
I've installed virtualenv in Slackware-14.2. Now I want to set up the ENV <https://virtualenv.pypa.io/en/stable/userguide/> in an application's development directory. Which is the CWD for running virtualenv and spcifying the path to the project's directoy? Rich -- ht

[SOLVED]: problem with json.dumps / complexjson.loads in python 3.4 virtualenv

2018-09-05 Thread M. Fioretti
On 2018-09-05 08:21, dieter wrote: "M. Fioretti" writes: I have an error in a python application that I installed... ... https://github.com/shaarli/python-shaarli-client/issues/33 ... Looks like the problem is immediately at the start of the response (--> "ValueError: Expecting value: line 1 c

problem with json.dumps / complexjson.loads in python 3.4 virtualenv

2018-09-05 Thread M. Fioretti
python client for the shaarli bookmarks manager, whose home page is https://github.com/shaarli/python-shaarli-client, on a Centos release 7.5 x86_64 server. Since that client requires python >= 3.4, and I do not want to move the whole server to that version, I created a virtualenv following

Re: problem with json.dumps / complexjson.loads in python 3.4 virtualenv

2018-09-04 Thread dieter
to move the whole server to that > version, I created a virtualenv following the instructions at > https://github.com/shaarli/python-shaarli-client/blob/master/docs/user/installation.rst > > When I try to run it, I get the error messages that I already reported > in full at > > htt

problem with json.dumps / complexjson.loads in python 3.4 virtualenv

2018-09-04 Thread M. Fioretti
run the python client for the shaarli bookmarks manager, whose home page is https://github.com/shaarli/python-shaarli-client, on a Centos release 7.5 x86_64 server. Since that client requires python >= 3.4, and I do not want to move the whole server to that version, I created a virtual

Re: virtualenv and ubuntu

2018-08-28 Thread Stone Zhong
On Tuesday, August 28, 2018 at 8:00:17 AM UTC-7, Matt Ruffalo wrote: > On 2018-08-28 07:26, stone.zh...@gmail.com wrote: > > Hi there, > > > > Sorry if the question is naive, I am on Ubuntu 16.04 with Python 3.5.2, now > > I want to use virtualenv, I noticed there are

Re: virtualenv and ubuntu

2018-08-28 Thread Matt Ruffalo
On 2018-08-28 07:26, stone.zh...@gmail.com wrote: > Hi there, > > Sorry if the question is naive, I am on Ubuntu 16.04 with Python 3.5.2, now I > want to use virtualenv, I noticed there are two ways to get virtualenv > installed: > > 1) do "sudo apt-get install virtual

Re: virtualenv and ubuntu

2018-08-28 Thread Kunal Jamdade
Hi, If you install with sudo it is installed for 2 users i.e current logged in as well as root. So if one login as root can use the installed "env". But if you install it with pip it will be used by the current logged in user. In my opinion, use pip to install virtualenv On Tue, Au

virtualenv and ubuntu

2018-08-28 Thread stone . zhong
Hi there, Sorry if the question is naive, I am on Ubuntu 16.04 with Python 3.5.2, now I want to use virtualenv, I noticed there are two ways to get virtualenv installed: 1) do "sudo apt-get install virtualenv" 2) do "pip3 install virtualenv" What is the preferred way t

Re: Good virtualenv and packaging tutorials for beginner?

2017-10-06 Thread Anssi Saari
Leam Hall writes: > Folks on IRC have suggested using virtualenv to test code under > different python versions. Sadly, I've not found a virtualenv tutorial > I understand. Anyone have a link to a good one? I recently used http://www.simononsoftware.com/virtualenv-tutorial-part-2/

Re: Good virtualenv and packaging tutorials for beginner?

2017-10-04 Thread Christopher Reimer
On Oct 4, 2017, at 3:49 AM, Leam Hall wrote: > > Folks on IRC have suggested using virtualenv to test code under different > python versions. Sadly, I've not found a virtualenv tutorial I understand. > Anyone have a link to a good one? > > The next step will be to figu

Re: Good virtualenv and packaging tutorials for beginner?

2017-10-04 Thread Paul Moore
On 4 October 2017 at 13:30, leam hall wrote: > On Wed, Oct 4, 2017 at 7:15 AM, Ben Finney > wrote: > >> Leam Hall writes: >> >> > Folks on IRC have suggested using virtualenv to test code under >> > different python versions. Sadly, I've not found a v

Re: Good virtualenv and packaging tutorials for beginner?

2017-10-04 Thread leam hall
On Wed, Oct 4, 2017 at 7:15 AM, Ben Finney wrote: > Leam Hall writes: > > > Folks on IRC have suggested using virtualenv to test code under > > different python versions. Sadly, I've not found a virtualenv tutorial > > I understand. Anyone have a link to a good

Re: Good virtualenv and packaging tutorials for beginner?

2017-10-04 Thread Ben Finney
Leam Hall writes: > Folks on IRC have suggested using virtualenv to test code under > different python versions. Sadly, I've not found a virtualenv tutorial > I understand. Anyone have a link to a good one? The Python Packaging Authority has a guide https://packaging.python

Good virtualenv and packaging tutorials for beginner?

2017-10-04 Thread Leam Hall
Folks on IRC have suggested using virtualenv to test code under different python versions. Sadly, I've not found a virtualenv tutorial I understand. Anyone have a link to a good one? The next step will be to figure out how to package a project; a good tutorial URL would be appreciated on

Re: virtualenv doesn't see my compiled tensorflow

2017-09-01 Thread ross
Solution: remember to run the 'activate' script: % source ~/tf_compile/tensorflow/bin/activate On Friday, September 1, 2017 at 2:39:33 PM UTC-7, ro...@cgl.ucsf.edu wrote: > With the prebuilt version of tensorflow, I did: > >virtualenv --system-site-packages ~/

virtualenv doesn't see my compiled tensorflow

2017-09-01 Thread ross
With the prebuilt version of tensorflow, I did: virtualenv --system-site-packages ~/tensorflow and somehow got it working with keras. Now I've compiled tensorflow in another shell/directory, where to start with I did: virtualenv --system-site-packages . and I got it running with

Re: Running flask server under virtualenv

2017-08-14 Thread Frustrated learner
Here is the complete stack trace Traceback (most recent call last): File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/local/Cellar/python3/3.6.2/Frameworks/Python.fram

Re: Running flask server under virtualenv

2017-08-14 Thread Frustrated learner
My bad. I was playing around with it. It should be: from swagger_server.models.binary import Binary -- https://mail.python.org/mailman/listinfo/python-list

Re: Running flask server under virtualenv

2017-08-14 Thread Steve D'Aprano
On Tue, 15 Aug 2017 01:08 am, Frustrated Learner wrote: > I am getting the following error when running flask server. I have a model > called binary. I am guessing a path issue. In the model, the code is: > > from __future__ import absolute_import > from swagger_server.models.binary import Binary

Running flask server under virtualenv

2017-08-14 Thread Frustrated Learner
Hello, I am using Python 3.62 on a mac. I am working under a virtualenv. I generated server code via http://editor.swagger.io (Swagger UI) Steps to reproduce python3 -m venv flaskglobal source flaskglobal/bin/activate cp binary to flaskglobal and unzip contents cd python-flask-server pip

Re: Customise the virtualenv `activate` script

2017-06-16 Thread Cameron Simpson
On 16Jun2017 06:40, Tim Chase wrote: At least within virtualenvwrapper (I'm not sure whether they come with virtualenv proper), in my $WORKON_HOME and $WORKON_HOME/$VIRTUALENV/bin directories, I have a bunch of pre* and post* templates including preactivate and postactivate hooks in which

Re: Customise the virtualenv `activate` script

2017-06-16 Thread Tim Chase
ript, I'm > > leaning towards hacking the activate script, probably by keeping > > a distinct file off the the side and modifying activate to source > > it. > > Yeah, I'd much prefer to be told there's a hook to use, so that > someone who creates a stand

Re: Customise the virtualenv `activate` script

2017-06-15 Thread Ben Finney
cript, probably by keeping a distinct > file off the the side and modifying activate to source it. Yeah, I'd much prefer to be told there's a hook to use, so that someone who creates a standard Python virtualenv the conventional way will not need to then hack that virtualenv. -- \

Re: Customise the virtualenv `activate` script

2017-06-13 Thread Cameron Simpson
On 13Jun2017 11:57, Ben Finney wrote: Many of the code bases for which I use a Python virtualenv, need additional (custom) environment variables set, each time the virtualenv is activated. How can I make this easy for developers who already know how to activate a virtualenv? * Edit the ‘$VENV

Customise the virtualenv `activate` script

2017-06-12 Thread Ben Finney
Howdy all, What is the conventional way to customise the changes made by a Python virtualenv bin/activate script? The Python virtualenv is activated by a ‘$VENV/bin/activate script’ [0]. This script works primarily by setting environment variables specific to the virtualenv. (This is different

Re: Running Virtualenv with a custom distlib?

2017-01-16 Thread Paul Moore
On Friday, 13 January 2017 09:27:59 UTC, haraldn...@gmail.com wrote: > I want to do some development on `distlib`, and in the process run the code > via `virtualenv` which has distlib as a dependency. > > That is, not run the process inside a virtualenv, but run virtualenv'

Re: Running Virtualenv with a custom distlib?

2017-01-14 Thread dieter
haraldnordg...@gmail.com writes: > I want to do some development on `distlib`, and in the process run the code > via `virtualenv` which has distlib as a dependency. > > That is, not run the process inside a virtualenv, but run virtualenv's code > using a custom dependency.

Running Virtualenv with a custom distlib?

2017-01-13 Thread haraldnordgren
I want to do some development on `distlib`, and in the process run the code via `virtualenv` which has distlib as a dependency. That is, not run the process inside a virtualenv, but run virtualenv's code using a custom dependency. What are the steps I need to go through to achieve this

Automatically restore virtualenv in Terminal.app on macOS (zsh, bash)

2017-01-12 Thread Ilya Kulakov
Today I discovered that one can customize session restoration in Terminal.app by defining the shell_session_save_user_state function. Here is a script that restores active virtualenv, e.g. after you reboot your machine: https://gist.github.com/Kentzo/185e4eab382bbcf1f0a9738a28128dce It&#

Re: Force virtualenv pip to be used

2016-11-07 Thread Alec Taylor
nning Ubuntu 16.10 with Python 2.7.12+ (default one) and virtualenv > >>> 15.0.3 (`sudo -H pip install virtualenv`). What am I doing wrong? > >>> > >>> $ virtualenv a && . "$_"/bin/activate && pip --version > >> > >&g

Re: Force virtualenv pip to be used

2016-11-06 Thread Chris Angelico
On Sun, Nov 6, 2016 at 10:19 PM, Peter Otten <__pete...@web.de> wrote: > Chris Angelico wrote: > >> On Sun, Nov 6, 2016 at 9:17 PM, Alec Taylor >> wrote: >>> Running Ubuntu 16.10 with Python 2.7.12+ (default one) and virtualenv >>> 15.0.3 (`sudo -H pip i

Re: Force virtualenv pip to be used

2016-11-06 Thread Peter Otten
Alec Taylor wrote: > On Sunday, November 6, 2016 at 10:20:53 PM UTC+11, Peter Otten wrote: >> Chris Angelico wrote: >> >> > On Sun, Nov 6, 2016 at 9:17 PM, Alec Taylor >> > wrote: >> >> Running Ubuntu 16.10 with Python 2.7.12+ (default one) and

Re: Force virtualenv pip to be used

2016-11-06 Thread Alec Taylor
On Sunday, November 6, 2016 at 10:20:53 PM UTC+11, Peter Otten wrote: > Chris Angelico wrote: > > > On Sun, Nov 6, 2016 at 9:17 PM, Alec Taylor > > wrote: > >> Running Ubuntu 16.10 with Python 2.7.12+ (default one) and virtualenv > >> 15.0.3 (`sudo -H pip i

Re: Force virtualenv pip to be used

2016-11-06 Thread Peter Otten
Chris Angelico wrote: > On Sun, Nov 6, 2016 at 9:17 PM, Alec Taylor > wrote: >> Running Ubuntu 16.10 with Python 2.7.12+ (default one) and virtualenv >> 15.0.3 (`sudo -H pip install virtualenv`). What am I doing wrong? >> >> $ virtualenv a && . "

Re: Force virtualenv pip to be used

2016-11-06 Thread Chris Angelico
On Sun, Nov 6, 2016 at 9:17 PM, Alec Taylor wrote: > Running Ubuntu 16.10 with Python 2.7.12+ (default one) and virtualenv > 15.0.3 (`sudo -H pip install virtualenv`). What am I doing wrong? > > $ virtualenv a && . "$_"/bin/activate && pip --version

Re: Force virtualenv pip to be used

2016-11-06 Thread Peter Otten
Alec Taylor wrote: > Running Ubuntu 16.10 with Python 2.7.12+ (default one) and virtualenv > 15.0.3 (`sudo -H pip install virtualenv`). What am I doing wrong? > > $ virtualenv a && . "$_"/bin/activate && pip --version > New python executa

Force virtualenv pip to be used

2016-11-06 Thread Alec Taylor
Running Ubuntu 16.10 with Python 2.7.12+ (default one) and virtualenv 15.0.3 (`sudo -H pip install virtualenv`). What am I doing wrong? $ virtualenv a && . "$_"/bin/activate && pip --version New python executable in /tmp/a/bin/python Installing setuptools,

Re: Running yum/apt-get from a virtualenv

2016-07-04 Thread Matt Wheeler
On Fri, 24 Jun 2016, 03:32 Tiglath Suriol, wrote: > Let us say that I install PostgreSQL from an activated virtualenv using > yum or apt-get, will PostgrSQL be local or global? > Global I understand that virtualenv isolates the Python environment only, so I > surmise that it

Running yum/apt-get from a virtualenv

2016-06-27 Thread Tiglath Suriol
Let us say that I install PostgreSQL from an activated virtualenv using yum or apt-get, will PostgrSQL be local or global? I understand that virtualenv isolates the Python environment only, so I surmise that it will make no difference installing with yum/apt-get inside or outside the

Cant install virtualenv

2016-03-19 Thread Arjun Prathap
Hai, While trying to install virtualenv in my system(windows 10 Home) using pip i'm getting the following error "Could not find a version that satisfies the requirement virtualenv (from versions: ) No matching distribution found for virtualenv". Right now i'm using

Re: Cant install virtualenv

2016-03-18 Thread Terry Reedy
On 3/17/2016 2:12 AM, Arjun Prathap wrote: While trying to install virtualenv in my system(windows 10 Home) using pip You need to give exact details on how you installed Python and how you tried to 'use pip'. i'm getting the following error... -- Terry Jan

Re: virtualenv: help me decide

2016-01-15 Thread Joel Goldstick
On Fri, Jan 15, 2016 at 1:17 PM, Paulo da Silva < p_s_d_a_s_i_l_v_a...@netcabo.pt> wrote: > Às 05:10 de 15-01-2016, Cameron Simpson escreveu: > > On 15Jan2016 03:37, Paulo da Silva > wrote: > ... > > Virtualenv is so easy to use that i suggest you > > just try i

Re: virtualenv: help me decide

2016-01-15 Thread Paulo da Silva
Às 05:10 de 15-01-2016, Cameron Simpson escreveu: > On 15Jan2016 03:37, Paulo da Silva wrote: ... > Virtualenv is so easy to use that i suggest you > just try it and see. > Thank you very much Cameron. Being easy, I'll give it a try with a small test program and see how

Re: virtualenv: help me decide

2016-01-14 Thread Cameron Simpson
On 15Jan2016 03:37, Paulo da Silva wrote: I am about to install tensorflow and I am considering to use virtualenv. Unfortunately I don't know anything about this. It makes a directory tree with its own libraries and "python" and "pip" executables. When you run t

virtualenv: help me decide

2016-01-14 Thread Paulo da Silva
Hi all! I am about to install tensorflow and I am considering to use virtualenv. Unfortunately I don't know anything about this. So, a couple of questions before I dig more ... 1. Are all already installed python stuff visible inside virtualenv? 2. I used to use eclipse for development.

Re: Cannot create a virtualenv

2015-09-14 Thread Kev Dwyer
paul.hermeneu...@gmail.com wrote: > - I downloaded and installed Python 3.5 64-bit onto a Windows 7 64-bit > machine. - Using `pip install virtualenv` worked fine. > - Now, it is time to create a virtualenv, but it is not working fine. > - I had to add Python 3.5 to the PATH. > -

Cannot create a virtualenv

2015-09-14 Thread paul . hermeneutic
- I downloaded and installed Python 3.5 64-bit onto a Windows 7 64-bit machine. - Using `pip install virtualenv` worked fine. - Now, it is time to create a virtualenv, but it is not working fine. - I had to add Python 3.5 to the PATH. - Any suggestions? C:\ve>virtualenv -p "\Program File

Cannot create a virtualenv

2015-09-13 Thread paul . hermeneutic
Installing Py 3.5 and `pip install virtualenv` worked fine. However, I cannot create a virtualenv. "OSError: Command C:\ve\ve33\Scripts\python.exe -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel failed with error code 1" Any suggestions? --

'pip install nose' fails on python3 virtualenv

2015-02-08 Thread Fabien
Folks, I couldn't find any info on this problem online: Linux Mint Python 3.3 virtualenv (12.0.7) pip (6.0.8) setuptools (12.0.5) (testpy3)mowglie@flappi ~ $ pip install nose Collecting nose Exception: Traceback (most recent call last): File "/home/mowglie/.pyvirtualenvs/t

Re: [Distutils] Release: pip 6.0 and virtualenv 12.0

2014-12-23 Thread Terry Reedy
On 12/23/2014 12:27 PM, Mark Lawrence wrote: I chanced upon this https://mail.python.org/pipermail/distutils-sig/2014-December/025450.html via twitter and thought it would be of interest here. I'll assume that by the time I hit 'Send' it'll have arrived on the announcements mailing list :) Don

[Distutils] Release: pip 6.0 and virtualenv 12.0

2014-12-23 Thread Mark Lawrence
I chanced upon this https://mail.python.org/pipermail/distutils-sig/2014-December/025450.html via twitter and thought it would be of interest here. I'll assume that by the time I hit 'Send' it'll have arrived on the announcements mailing list :) -- My fellow Pythonistas, ask not what our lan

Building a Debian/Ubuntu package from a virtualenv

2014-11-26 Thread Tim Chase
I've created a small application in a virtualenv and would like to package it up as a .deb file for distribution on various Debian/Ubuntu (and derivatives) systems. Are there any good resources documenting this process? The biggest issue involves using versions of modules installed via pip

Re: virtualenv question: include just a few site packages

2014-10-10 Thread Jean-Michel Pichavant
- Original Message - > From: "Gelonida N" > To: python-list@python.org > Sent: Thursday, 9 October, 2014 5:55:44 PM > Subject: Re: virtualenv question: include just a few site packages > > You could build a virtual machine, installing only your VIP >

Re: virtualenv question: include just a few site packages

2014-10-09 Thread Gelonida N
On 10/09/2014 03:19 PM, Jean-Michel Pichavant wrote: - Original Message - virtualenv has the switch --system-site-packages (including all system site pacgaes) and the switch --no-site-packages (to expclude all site packages) Does anyone know an easy way to include just a few site

Re: virtualenv question: include just a few site packages

2014-10-09 Thread Jean-Michel Pichavant
- Original Message - > From: "Gelonida N" > To: python-list@python.org > Sent: Thursday, 9 October, 2014 12:09:50 AM > Subject: virtualenv question: include just a few site packages > > virtualenv has the switch > --system-site-packages (including all

virtualenv question: include just a few site packages

2014-10-08 Thread Gelonida N
virtualenv has the switch --system-site-packages (including all system site pacgaes) and the switch --no-site-packages (to expclude all site packages) Does anyone know an easy way to include just a few site-packages? for example (PySide, but not PyQt) The reason I'm asking is following.

Re: How to run multiple virtualenv in product server

2014-03-01 Thread Cameron Simpson
On 27Feb2014 07:29, YE SHANG wrote: > I'm starting to learn virtualenv, I wonder how run python project developed > in virtualenv. > > Here is my situation, there is a server we can access with a common user name > and password, there are many py scripts wrote by diff

Re:How to run multiple virtualenv in product server

2014-02-27 Thread Dave Angel
YE SHANG Wrote in message: > I'm starting to learn virtualenv, I wonder how run python project developed > in virtualenv. > > Here is my situation, there is a server we can access with a common user name > and password, there are many py scripts wrote by different peop

How to run multiple virtualenv in product server

2014-02-27 Thread YE SHANG
I'm starting to learn virtualenv, I wonder how run python project developed in virtualenv. Here is my situation, there is a server we can access with a common user name and password, there are many py scripts wrote by different people on this server. If I develop my python project

Re: Using virtualenv to bypass sudoer issues

2014-02-10 Thread Asaf Las
On Monday, February 10, 2014 4:46:31 PM UTC+2, Jean-Michel Pichavant wrote: > > Call the venv version of python and activation is handled. > > E.g. in a fabfile > > > > myenv/bin/python myscript.py > > > > -- > > Pete Forman > > -- > > https://mail.python.org/mailman/listinfo/python-list > >

Re: Using virtualenv to bypass sudoer issues

2014-02-10 Thread Jean-Michel Pichavant
> Call the venv version of python and activation is handled. > E.g. in a fabfile > > myenv/bin/python myscript.py > > -- > Pete Forman > -- > https://mail.python.org/mailman/listinfo/python-list wow, the solution is so nice and simple. JM -- IMPORTANT NOTICE: The contents of this emai

Re: Using virtualenv to bypass sudoer issues

2014-02-10 Thread Pete Forman
Jean-Michel Pichavant writes: > Thank you all for you insights. > > I'll probably go with virtualenv, I'll be able to distribute it among > the team. > There's still one point worrying me though: > We're doing a lot a remote execution. We're using &qu

Re: Using virtualenv to bypass sudoer issues

2014-02-10 Thread Jean-Michel Pichavant
Thank you all for you insights. I'll probably go with virtualenv, I'll be able to distribute it among the team. There's still one point worrying me though: We're doing a lot a remote execution. We're using "execnet" http://codespeak.net/execnet/, and I&#

Re: Using virtualenv to bypass sudoer issues

2014-02-08 Thread Jussi Piitulainen
Glenn Hutchings writes: > On 06/02/14 17:32, Jean-Michel Pichavant wrote: > > > Assuming I have a debian workstation for which I don't have any > > sudo rights, in order to be able to install / remove python > > packages, should I be using virtualenv ? Is it a s

Re: Using virtualenv to bypass sudoer issues

2014-02-08 Thread Glenn Hutchings
On 06/02/14 17:32, Jean-Michel Pichavant wrote: > Assuming I have a debian workstation for which I don't have any sudo > rights, in order to be able to install / remove python packages, should > I be using virtualenv ? Is it a suited solution ? It depends on whether you nee

Re: Using virtualenv to bypass sudoer issues

2014-02-07 Thread Asaf Las
On Saturday, February 8, 2014 5:32:22 AM UTC+2, Cameron Simpson wrote: > On 07Feb2014 19:03, Asaf Las wrote: > > Persuming you are asking about "just make a lib directory and point > $PYTHONPATH at it" instead of virtualenv, in principle yes. > But it is more work; vi

Re: Using virtualenv to bypass sudoer issues

2014-02-07 Thread Cameron Simpson
n order to be able to install / remove python packages, > > > should I be using virtualenv ? Is it a suited solution ? > > > > It is well suited. > > > > You can also do far simpler (and far smaller setups) like this: > > mkdir -p $HOME/lib/pyth

Re: Using virtualenv to bypass sudoer issues

2014-02-07 Thread Asaf Las
, > > should I be using virtualenv ? Is it a suited solution ? > > It is well suited. > > You can also do far simpler (and far smaller setups) like this: > > mkdir -p $HOME/lib/python > > and in your environment (eg $HOME/.profile or $HOME/.bash_profile) add: >

Re: Using virtualenv to bypass sudoer issues

2014-02-07 Thread Cameron Simpson
On 06Feb2014 18:32, Jean-Michel Pichavant wrote: > Assuming I have a debian workstation for which I don't have any > sudo rights, in order to be able to install / remove python packages, > should I be using virtualenv ? Is it a suited solution ? It is well suited. You can also

Using virtualenv to bypass sudoer issues

2014-02-06 Thread Jean-Michel Pichavant
Greetings, Assuming I have a debian workstation for which I don't have any sudo rights, i n order to be able to install / remove python packages, should I be using virtualenv ? Is it a suited solution ? JM -- IMPORTANT NOTICE: The contents of this email and any attachment

Re: How do I update a virtualenv?

2013-10-30 Thread Skip Montanaro
gs though. That's the problem with monkey-see-monkey-do. I completely glossed over the part where venv was excluded from my git repo. That being the case then, to update my virtualenv, I need to first create a new one in a fresh directory (using my existing requirements.txt file). I should be a

Re: How do I update a virtualenv?

2013-10-29 Thread alex23
On 30/10/2013 12:08 AM, Skip Montanaro wrote: Where specifically are these instructions that tell you to put the virtualenv under VCS control? https://devcenter.heroku.com/articles/getting-started-with-python I believe you may have misread the instructions slightly. You should have a

Re: How do I update a virtualenv?

2013-10-29 Thread Skip Montanaro
> Where specifically are these instructions that tell you to put the > virtualenv under VCS control? https://devcenter.heroku.com/articles/getting-started-with-python > As you are a Heroku customer (I'm not), would you be willing to > suggest they alter them based on advic

Re: How do I update a virtualenv?

2013-10-28 Thread Ben Finney
Skip Montanaro writes: > > You are keeping your virtualenv separate from your working tree, > > right? I put mine in ‘/var/local/devel/$USER/virtualenvs/foobar/’ > > where “foobar” is the specific virtualenv name. > > No, I'm no expert in these things. I was just

Re: How do I update a virtualenv?

2013-10-28 Thread Ben Finney
on't want loads of third-party files in your VCS repository. Instead, the deployment to the live system should be done from a wholly separate build area, and the virtualenv can serve as that build area. Then, your VCS need only contain the files you'll actually be changing as source code

Re: How do I update a virtualenv?

2013-10-28 Thread Skip Montanaro
>> Hmmm... And my git repo? > > You are keeping your virtualenv separate from your working tree, right? > I put mine in ‘/var/local/devel/$USER/virtualenvs/foobar/’ where > “foobar” is the specific virtualenv name. No, I'm no expert in these things. I was just followin

Re: How do I update a virtualenv?

2013-10-28 Thread Tim Chase
On 2013-10-29 11:42, Ben Finney wrote: > You are keeping your virtualenv separate from your working tree, > right? This was one of the key bits I missed in most of the virtualenv{,wrapper} documentation and only figured out after asking several questions here on c.l.p Once I ha

  1   2   3   >