Discussion:
[Scons-users] Windows installer for SCons 3.0.1
Steve Hill (Wireless)
2018-06-08 09:06:21 UTC
Permalink
All,

We are planning to upgrade to MSVS2017 so we need to move to SCons 3.0.1. However, when I click on the download link for the Windows installer on https://scons.org/pages/download.html, it appears not to exist - I just get taken to a SourceForge page that offers me a .zip file. How do I go about getting a Windows installer for the latest production version of SCons?

Thanks in advance,

Steve.
Bill Deegan
2018-06-08 16:11:13 UTC
Permalink
Steve,

We've dropped the windows installer in favor of pip install.
Please give that a try.

Which version of Python are you planning on using it with?

I recommend running:
python -mpip install -U pip
python -mpip install scons

(To ensure you have the latest pip installed, and pip installing scons
requires a fairly recent version)

-Bill

On Fri, Jun 8, 2018 at 2:06 AM, Steve Hill (Wireless) <
Post by Steve Hill (Wireless)
All,
We are planning to upgrade to MSVS2017 so we need to move to SCons 3.0.1.
However, when I click on the download link for the Windows installer on
https://scons.org/pages/download.html, it appears not to exist – I just
get taken to a SourceForge page that offers me a .zip file. How do I go
about getting a Windows installer for the latest production version of
SCons?
Thanks in advance,
Steve.
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
Steve Hill (Wireless)
2018-06-11 07:33:24 UTC
Permalink
Hi Bill,

Thanks for this. It might be worth updating the downloads page with this information?

We are currently using 2.7.12 32-bit (though we also use 3.6.3 for 64-bit duties and may look forward to switching over this at some point in the future.)

The install seems to have gone well using the commands that you gave below. The only issue that I have with using PIP is that we need to support having multiple versions of SCons installed against the same python install; is this possible?

Thanks again,

S.


From: Scons-users [mailto:scons-users-***@scons.org] On Behalf Of Bill Deegan
Sent: 08 June 2018 17:11
To: SCons users mailing list
Subject: Re: [Scons-users] Windows installer for SCons 3.0.1

Steve,

We've dropped the windows installer in favor of pip install.
Please give that a try.

Which version of Python are you planning on using it with?

I recommend running:
python -mpip install -U pip
python -mpip install scons

(To ensure you have the latest pip installed, and pip installing scons requires a fairly recent version)

-Bill

On Fri, Jun 8, 2018 at 2:06 AM, Steve Hill (Wireless) <***@viavisolutions.com<mailto:***@viavisolutions.com>> wrote:
All,

We are planning to upgrade to MSVS2017 so we need to move to SCons 3.0.1. However, when I click on the download link for the Windows installer on https://scons.org/pages/download.html, it appears not to exist – I just get taken to a SourceForge page that offers me a .zip file. How do I go about getting a Windows installer for the latest production version of SCons?

Thanks in advance,

Steve.

_______________________________________________
Scons-users mailing list
Scons-***@scons.org<mailto:Scons-***@scons.org>
https://pairlist4.pair.net/mailman/listinfo/scons-users
Bill Deegan
2018-06-11 15:04:43 UTC
Permalink
Steve,

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

On Mon, Jun 11, 2018 at 12:33 AM, Steve Hill (Wireless) <
Post by Steve Hill (Wireless)
Hi Bill,
Thanks for this. It might be worth updating the downloads page with this information?
We are currently using 2.7.12 32-bit (though we also use 3.6.3 for 64-bit
duties and may look forward to switching over this at some point in the
future.)
The install seems to have gone well using the commands that you gave
below. The only issue that I have with using PIP is that we need to support
having multiple versions of SCons installed against the same python
install; is this possible?
Thanks again,
S.
Deegan
*Sent:* 08 June 2018 17:11
*To:* SCons users mailing list
*Subject:* Re: [Scons-users] Windows installer for SCons 3.0.1
Steve,
We've dropped the windows installer in favor of pip install.
Please give that a try.
Which version of Python are you planning on using it with?
python -mpip install -U pip
python -mpip install scons
(To ensure you have the latest pip installed, and pip installing scons
requires a fairly recent version)
-Bill
On Fri, Jun 8, 2018 at 2:06 AM, Steve Hill (Wireless) <
All,
We are planning to upgrade to MSVS2017 so we need to move to SCons 3.0.1.
However, when I click on the download link for the Windows installer on
https://scons.org/pages/download.html, it appears not to exist – I just
get taken to a SourceForge page that offers me a .zip file. How do I go
about getting a Windows installer for the latest production version of
SCons?
Thanks in advance,
Steve.
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
Mats Wichmann
2018-06-11 15:14:38 UTC
Permalink
Post by Bill Deegan
Steve,
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.
Bill Deegan
2018-06-11 15:25:04 UTC
Permalink
Steve,

Downloads page updated.

-Bill
Post by Mats Wichmann
Post by Bill Deegan
Steve,
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
Steve Hill (Wireless)
2018-06-12 07:53:21 UTC
Permalink
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 multiple version are permitted. The standard script that implements this is:

#! /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...
if len(sys.argv) > 1:
for version, flags in versions:
if sys.argv[1] == version:
print "Forcing to SCons version", version
forced = True
versions = [
(version, flags)
]
del sys.argv[1]
break

for version, flags in versions:
batchFile = os.path.join(os.path.dirname(sys.executable), 'Scripts', 'scons-%s.bat' % version)
if os.path.exists(batchFile):
cmd = '\"%s\" %s ' % (batchFile, flags) + ' '.join(defaults + sys.argv[1:])
sys.exit(os.system(cmd))
else:
if forced:
print "SCons version", versions[0][0], "is not installed"
else:
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.

From: Scons-users [mailto:scons-users-***@scons.org] On Behalf Of Bill 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 Deegan
Steve,
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
Scons-***@scons.org<mailto:Scons-***@scons.org>
https://pairlist4.pair.net/mailman/listinfo/scons-users
Bill Deegan
2018-06-12 14:09:35 UTC
Permalink
Steve,

There no reason your script can't be modified to work with virtualenvs.

Just create a virtualenv at:

c:\scons\3.0.1
c:\scons\2.5.1

And then modify your script to use c:\scons as the base instead of <python
install>\scripts\...
If you want a version per python version, similar path nameing should also
do the trick.

-Bill

On Tue, Jun 12, 2018 at 12:53 AM, Steve Hill (Wireless) <
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 Deegan
Steve,
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
Steve Hill (Wireless)
2018-06-20 09:20:20 UTC
Permalink
Just a quick update. I’ve had a reasonably willing victim install SCons 3.0.1 with pip (against Python 2.7.12) and he needed to run the following sequence before it would install without errors:

python -m pip install -U pip
python -m pip install -U setuptools
python -m pip install -U wheel
python -m pip install scons

S.
Bill Deegan
2018-06-20 19:18:11 UTC
Permalink
Yes.
That's as I'd expect.

-Bill

On Wed, Jun 20, 2018 at 5:20 AM, Steve Hill (Wireless) <
Post by Steve Hill (Wireless)
Just a quick update. I’ve had a reasonably willing victim install SCons
3.0.1 with pip (against Python 2.7.12) and he needed to run the following
python -m pip install -U pip
python -m pip install -U setuptools
python -m pip install -U wheel
python -m pip install scons
S.
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
Loading...