EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: pyDevSup and PyDevice: Virtual Environment
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: Kuldeep Joshi <kuldeep.joshi at gmail.com>
Cc: tech-talk at aps.anl.gov
Date: Mon, 25 Apr 2022 07:58:07 -0700
On 4/25/22 01:16, Kuldeep Joshi via Tech-talk wrote:
Hello,
How do i use the python virtual environment for building, and executing the pyDevSup and pyDevice.

While making for pyDevSup, I activated the virtual environment, accordingly I could see the site-packages from the virtual environment path were linked/included.

The pyDevice building did not indicate linking/include the virtual environment site-packages.

for pyDevSup, any suggestions as to how I can automate switching to the virtual environment before invoking the IOC?? (source ~/myvirtEnv/bin/activate??? at the start of st.cmd file??)

All the 'activate' script does these days is modify $PATH so yoy
can instead directly reference 'bin/python` in a virtualenv.

/path/to/env/bin/python myscript.py

or

#!/path/to/env/bin/python
...

Replies:
Re: pyDevSup and PyDevice: Virtual Environment Kuldeep Joshi via Tech-talk
References:
pyDevSup and PyDevice: Virtual Environment Kuldeep Joshi via Tech-talk

Navigate by Date:
Prev: Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address William Kirstaedter via Tech-talk
Next: Re: Recsync: RecCeiver Server announcement contains Broadcast address instead of server ip address Michael Davidsaver via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: pyDevSup and PyDevice: Virtual Environment Kuldeep Joshi via Tech-talk
Next: Re: pyDevSup and PyDevice: Virtual Environment Kuldeep Joshi via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·