Replies: 6 comments 6 replies
-
Here is the cmd output I am receiving when I try to install SCONS 4.2.0 C:\Users\grb1rlz\Desktop\AllStuff\EXE\AllOrganized\BuildTools\scons\scons-4.2.0>python setup.py install --version-lib error: option --version-lib not recognized |
Beta Was this translation helpful? Give feedback.
-
This is not a bug. The proper channel to ask is via the users mailing list, the IRC channel or the discord server. You should use python virtualenvs. |
Beta Was this translation helpful? Give feedback.
-
Moved to discussion. Where did you see instructions to use --version-lib? That's obsolete information. |
Beta Was this translation helpful? Give feedback.
-
Added bug to remove/update that obsoleted section of users guide: #4259 |
Beta Was this translation helpful? Give feedback.
-
There's a simpleminded virtualenv recipe in the cookbook: https://scons-cookbook.readthedocs.io/en/latest/#setting-up-a-python-virtualenv-for-scons How you do this will depend on whether you're able to use the same Python for both versions. If you can, make two virtualenvs with different names, and install SCons once in each one, something like this: cd oldscons
source bin/activate
pip install scons==3.1.2
deactivate
cd ../newscons
source bin/activate
pip install scons==4.2.0 (the latter assuming you need 4.2.0, if you leave out the version specifier you'll get the latest, which is 4.4.0) Now whichever virtualenv you have activated, you'll get the SCons in that env - you're clearly not limited to two of them. This is the preferred Python way of keeping isolated setups that don't interfere with one another (or with the system Python installation). The above was Linux syntax, but the recipe has tabs for Mac and Windows, so you can see what those might look like if needed. |
Beta Was this translation helpful? Give feedback.
-
pip can take a |
Beta Was this translation helpful? Give feedback.
-
Hi,
For my development works, I need to have multiple versions of scons installed on my PC (SCONS-3.1.2 and SCONS-4.2.0). I went through the SCONS user guide for finding some info for a way to achieve this and find out I can use an command python setup.py install --version-lib
The above command worked fine when I am trying to install SCONS 3.1.2 but when I try to install SCONS 4.2.0 then it fails saying error: option --version-lib not recognized .
Can you please help me with a way to achieve this so that I can work with two versions of scons on my PC?
Thanks and please let me know if you need any more info.
Beta Was this translation helpful? Give feedback.
All reactions