[Scons-users] installation to virtualenv broken in scons 2.5

Noah Hoffman noah.hoffman at gmail.com
Sat Apr 23 23:57:42 EDT 2016


Hello,

Installation to a virtualenv appears to have broken in the latest
release of scons. Please let me know if information in addition to the
commands and output below would be helpful. I have reproduced the
issue on both OS X (el capitan) and Ubuntu 14.04. Note that I see the
same behavior when installing v2.5 to a fresh virtualenv (as opposed
to an upgrade from 2.4.1 as shown below).

Thanks for having a look.

% python --version
Python 2.7.10
% virtualenv --version
15.0.0
% virtualenv scons-env
% source scons-env/bin/activate
% pip --version
pip 8.1.1
% pip install scons==2.4.1
% hash -r
% scons --version
SCons by Steven Knight et al.:
script: v2.4.1.rel_2.4.1:3453:73fefd3ea0b0, 2015/11/09 03:25:05, by
bdbaddog on ubuntu1404-32bit
engine: v2.4.1.rel_2.4.1:3453:73fefd3ea0b0, 2015/11/09 03:25:05, by
bdbaddog on ubuntu1404-32bit
engine path: ['/Users/me/Downloads/foo/scons-env/lib/python2.7/site-packages/scons-2.4.1/SCons']
Copyright (c) 2001 - 2015 The SCons Foundation
% pip install -U scons  # install current release
Collecting scons
  Using cached scons-2.5.0.post1-py2-none-any.whl
Installing collected packages: scons
  Found existing installation: scons 2.4.1
    Uninstalling scons-2.4.1:
      Successfully uninstalled scons-2.4.1
Successfully installed scons-2.5.0.post1
% scons --version
SCons import failed. Unable to find engine files in:
  /Users/me/Downloads/foo/scons-env/bin/../engine
  /Users/me/Downloads/foo/scons-env/bin/scons-local-2.5.0
  /Users/me/Downloads/foo/scons-env/bin/scons-local
  /Users/me/Downloads/foo/scons-env/lib/python2.7/site-packages/lib/scons-2.5.0
  /Users/me/Downloads/foo/scons-env/lib/scons-2.5.0
  /Users/me/Downloads/foo/scons-env/bin/../lib/scons-2.5.0
  /Users/me/Downloads/foo/scons-env/lib/python2.7/site-packages/lib/python2.7/site-packages/scons-2.5.0
  /Users/me/Downloads/foo/scons-env/lib/python2.7/site-packages/scons-2.5.0
  /Users/me/Downloads/foo/scons-env/bin/../lib/python2.7/site-packages/scons-2.5.0
  /Users/me/Downloads/foo/scons-env/lib/scons-2.5.0
  /Users/me/Downloads/foo/scons-env/lib/python2.7/site-packages/lib/scons
  /Users/me/Downloads/foo/scons-env/lib/scons
  /Users/me/Downloads/foo/scons-env/bin/../lib/scons
  /Users/me/Downloads/foo/scons-env/lib/python2.7/site-packages/lib/python2.7/site-packages/scons
  /Users/me/Downloads/foo/scons-env/lib/python2.7/site-packages/scons
  /Users/me/Downloads/foo/scons-env/bin/../lib/python2.7/site-packages/scons
  /Users/me/Downloads/foo/scons-env/lib/scons
Traceback (most recent call last):
  File "/Users/me/Downloads/foo/scons-env/bin/scons", line 190, in <module>
    import SCons.Script
ImportError: No module named SCons.Script


More information about the Scons-users mailing list