There no reason your script can't be modified to work with virtualenvs.
install>\scripts\...
do the trick.
Post by Steve Hill (Wireless)Thanks Bill.
I donât think that virtualenv is going to work for us. As Mats said, we
have different projects using different SCons versions and we have a switch
over period between two versions of SCons for any given project, where
#! /usr/bin/env python
import os, sys
# Define the list of allowed SCons versions, in priority order - with the
preferred versions first
versions = [
("2.5.1", ""),
("3.0.1", ""),
]
forced = False
# The first argument maybe the specific version of SCons to use so check for that...
print "Forcing to SCons version", version
forced = True
versions = [
(version, flags)
]
del sys.argv[1]
break
batchFile = os.path.join(os.path.dirname(sys.executable), 'Scripts',
'scons-%s.bat' % version)
cmd = '\"%s\" %s ' % (batchFile, flags) + ' '.join(defaults + sys.argv[1:])
sys.exit(os.system(cmd))
print "SCons version", versions[0][0], "is not installed"
print "No supported version of SCons is installed"
This allows all the users to have multiple versions of SCons installed and
each project will use the version that is to be used for that project â or
fail if it is not currently installed. Iâll have to look at whether I can
create a .zip file for each version of SCons 3.x.x that we end up using to
allow multiple concurrent installationsâŠ
Thanks,
S.
Deegan
*Sent:* 11 June 2018 16:25
*To:* SCons users mailing list
*Subject:* Re: [Scons-users] Windows installer for SCons 3.0.1
Steve,
Downloads page updated.
-Bill
Post by Bill DeeganSteve,
In that case, virtualenv is your friend
virtualenv scons-#.#.#
scons-#.#.#\scripts\activate.bat
pip install -U pip
pip install scons
You can create one virtualenv per scons version.
-Bill
my relatively rarely-used Windows setup has one py2+scons3 setup and one
p3+scons3 setup, and this works well.
on the other hand, if the issue is different projects using different
scons versions, adding a local-install scons to the project could also
work. that way you're sure to have the right one - have done that
experimentally and it seems to work fine too.
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users