Discussion:
[Scons-users] --no-cache-dir
Bassem Girgis
2017-11-20 19:06:00 UTC
Permalink
Hi All,

I'm trying to build a docker image to host my development env. In doing so
and trying to reduce the size of the final image, I try to install scons by
"pip3 install --no-cache-dir scons". I'm getting this error:

Running setup.py install for scons: started
Running setup.py install for scons: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-bkga9xu_/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-6hnl2p1k-record/install-record.txt
--single-version-externally-managed --compile:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: option --single-version-externally-managed not recognized

Best regards,

Bassem Girgis, PhD

Email: ***@gmail.com
Daniel Moody
2017-11-20 19:46:42 UTC
Permalink
Hey Bassem,

For installing SCons through pip, you may need to use pip like this:

pip3 install --egg SCons

I found this on stackoverflow here and tested it out:

https://stackoverflow.com/a/19697682


On Nov 20, 2017 2:06 PM, "Bassem Girgis" <***@gmail.com> wrote:

Hi All,

I'm trying to build a docker image to host my development env. In doing so
and trying to reduce the size of the final image, I try to install scons by
"pip3 install --no-cache-dir scons". I'm getting this error:

Running setup.py install for scons: started
Running setup.py install for scons: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-bkga9xu_/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-6hnl2p1k-record/install-record.txt --single-version-externally-managed
--compile:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: option --single-version-externally-managed not recognized

Best regards,

Bassem Girgis, PhD

Email: ***@gmail.com
Bill Deegan
2017-11-20 19:48:38 UTC
Permalink
pip install -U wheel setuptools pip
pip install scons

I think this should work.
Please let us know if not.

Thanks,
-Bill
Post by Daniel Moody
Hey Bassem,
pip3 install --egg SCons
https://stackoverflow.com/a/19697682
Hi All,
I'm trying to build a docker image to host my development env. In doing so
and trying to reduce the size of the final image, I try to install scons by
Running setup.py install for scons: started
Running setup.py install for scons: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import
setuptools, tokenize;__file__='/tmp/pip-build-bkga9xu_/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-6hnl2p1k-record/install-record.txt --single-version-externally-managed
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-version-externally-managed not recognized
Best regards,
Bassem Girgis, PhD
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
Bassem Girgis
2017-11-23 04:52:49 UTC
Permalink
I tried the following Dockerfile:









*FROM opensuse:tumbleweedRUN \zypper install -y python3 python3-devel
python3-pip && \zypper clean -aRUN \pip3 install --no-cache-dir -U
setuptools wheel pip && \pip3 install --no-cache-dir scons*

And I got this error:













*Running setup.py install for scons: started Running setup.py install
for scons: finished with status 'error' Complete output from command
/usr/bin/python3 -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-hrmmx99j/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-inb19a1a-record/install-record.txt
--single-version-externally-managed --compile: usage: -c [global_opts]
cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2
...] or: -c --help-commands or: -c cmd --help error:
option --single-version-externally-managed not recognized
----------------------------------------Command "/usr/bin/python3 -u -c
"import setuptools,
tokenize;__file__='/tmp/pip-build-hrmmx99j/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-inb19a1a-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/tmp/pip-build-hrmmx99j/scons/*


Then I changed the scons install line to "pip3 install --no-cache-dir --egg
SCons" as Daniel suggested and that one passed.

However, pip
<https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-egg> seems
to dislike --egg since it gives up pip control on the setup process. It
looks like the setup of scons does not recognize the
--single-version-externally-managed option passed down by pip when the
--no-cache-diris is used. It would be nice if scons could behave in the
expected way here since lumping packages in one command while building the
container seems to save a lot of space.


Bassem Girgis, PhD
Post by Bill Deegan
pip install -U wheel setuptools pip
pip install scons
I think this should work.
Please let us know if not.
Thanks,
-Bill
Post by Daniel Moody
Hey Bassem,
pip3 install --egg SCons
https://stackoverflow.com/a/19697682
Hi All,
I'm trying to build a docker image to host my development env. In doing
so and trying to reduce the size of the final image, I try to install scons
Running setup.py install for scons: started
Running setup.py install for scons: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import
setuptools, tokenize;__file__='/tmp/pip-build-bkga9xu_/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-6hnl2p1k-record/install-record.txt
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-version-externally-managed not recognized
Best regards,
Bassem Girgis, PhD
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
Bill Deegan
2017-11-24 00:24:52 UTC
Permalink
Bassem,

Indeed the scons packaging needs some work.
Pull requests are welcome.

The setup.py logic is ancient and hasn't been updated in a while.
(Excluding some changes to all building windows exe packages which we've
dropped with the 3.0.0 release)

It's on the list, but I'm focusing on some performance work at this time.
-Bill
Post by Bassem Girgis
*FROM opensuse:tumbleweedRUN \zypper install -y python3 python3-devel
python3-pip && \zypper clean -aRUN \pip3 install --no-cache-dir -U
setuptools wheel pip && \pip3 install --no-cache-dir scons*
*Running setup.py install for scons: started Running setup.py install
for scons: finished with status 'error' Complete output from command
/usr/bin/python3 -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-hrmmx99j/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-inb19a1a-record/install-record.txt
--single-version-externally-managed --compile: usage: -c [global_opts]
cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2
option --single-version-externally-managed not recognized
----------------------------------------Command "/usr/bin/python3 -u -c
"import setuptools,
tokenize;__file__='/tmp/pip-build-hrmmx99j/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-inb19a1a-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/tmp/pip-build-hrmmx99j/scons/*
Then I changed the scons install line to "pip3 install --no-cache-dir
--egg SCons" as Daniel suggested and that one passed.
However, pip
<https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-egg>
seems to dislike --egg since it gives up pip control on the setup process.
It looks like the setup of scons does not recognize the
--single-version-externally-managed option passed down by pip when the
--no-cache-diris is used. It would be nice if scons could behave in the
expected way here since lumping packages in one command while building the
container seems to save a lot of space.
Bassem Girgis, PhD
Post by Bill Deegan
pip install -U wheel setuptools pip
pip install scons
I think this should work.
Please let us know if not.
Thanks,
-Bill
Post by Daniel Moody
Hey Bassem,
pip3 install --egg SCons
https://stackoverflow.com/a/19697682
Hi All,
I'm trying to build a docker image to host my development env. In doing
so and trying to reduce the size of the final image, I try to install scons
Running setup.py install for scons: started
Running setup.py install for scons: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import
setuptools, tokenize;__file__='/tmp/pip-build-bkga9xu_/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-6hnl2p1k-record/install-record.txt
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-version-externally-managed not recognized
Best regards,
Bassem Girgis, PhD
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
Bill Deegan
2017-11-24 00:26:22 UTC
Permalink
Note there exists a bug for this:
http://scons.tigris.org/issues/show_bug.cgi?id=2769
Post by Daniel Moody
Bassem,
Indeed the scons packaging needs some work.
Pull requests are welcome.
The setup.py logic is ancient and hasn't been updated in a while.
(Excluding some changes to all building windows exe packages which we've
dropped with the 3.0.0 release)
It's on the list, but I'm focusing on some performance work at this time.
-Bill
Post by Bassem Girgis
*FROM opensuse:tumbleweedRUN \zypper install -y python3 python3-devel
python3-pip && \zypper clean -aRUN \pip3 install --no-cache-dir -U
setuptools wheel pip && \pip3 install --no-cache-dir scons*
*Running setup.py install for scons: started Running setup.py install
for scons: finished with status 'error' Complete output from command
/usr/bin/python3 -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-hrmmx99j/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-inb19a1a-record/install-record.txt
--single-version-externally-managed --compile: usage: -c [global_opts]
cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2
option --single-version-externally-managed not recognized
----------------------------------------Command "/usr/bin/python3 -u -c
"import setuptools,
tokenize;__file__='/tmp/pip-build-hrmmx99j/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-inb19a1a-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/tmp/pip-build-hrmmx99j/scons/*
Then I changed the scons install line to "pip3 install --no-cache-dir
--egg SCons" as Daniel suggested and that one passed.
However, pip
<https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-egg>
seems to dislike --egg since it gives up pip control on the setup process.
It looks like the setup of scons does not recognize the
--single-version-externally-managed option passed down by pip when the
--no-cache-diris is used. It would be nice if scons could behave in the
expected way here since lumping packages in one command while building the
container seems to save a lot of space.
Bassem Girgis, PhD
Post by Bill Deegan
pip install -U wheel setuptools pip
pip install scons
I think this should work.
Please let us know if not.
Thanks,
-Bill
Post by Daniel Moody
Hey Bassem,
pip3 install --egg SCons
https://stackoverflow.com/a/19697682
Hi All,
I'm trying to build a docker image to host my development env. In doing
so and trying to reduce the size of the final image, I try to install scons
Running setup.py install for scons: started
Running setup.py install for scons: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import
setuptools, tokenize;__file__='/tmp/pip-bu
ild-bkga9xu_/scons/setup.py';f=getattr(tokenize, 'open',
open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install
--record /tmp/pip-6hnl2p1k-record/install-record.txt
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-version-externally-managed not recognized
Best regards,
Bassem Girgis, PhD
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
Bassem Girgis
2017-11-24 00:36:32 UTC
Permalink
I will give it a look and let you know.

----
Bassem Girgis, PhD
Cell: +1(256)479-6124
Post by Bill Deegan
http://scons.tigris.org/issues/show_bug.cgi?id=2769
Post by Daniel Moody
Bassem,
Indeed the scons packaging needs some work.
Pull requests are welcome.
The setup.py logic is ancient and hasn't been updated in a while.
(Excluding some changes to all building windows exe packages which we've
dropped with the 3.0.0 release)
It's on the list, but I'm focusing on some performance work at this time.
-Bill
Post by Bassem Girgis
*FROM opensuse:tumbleweedRUN \zypper install -y python3 python3-devel
python3-pip && \zypper clean -aRUN \pip3 install --no-cache-dir -U
setuptools wheel pip && \pip3 install --no-cache-dir scons*
*Running setup.py install for scons: started Running setup.py install
for scons: finished with status 'error' Complete output from command
/usr/bin/python3 -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-hrmmx99j/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-inb19a1a-record/install-record.txt
--single-version-externally-managed --compile: usage: -c [global_opts]
cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2
option --single-version-externally-managed not recognized
----------------------------------------Command "/usr/bin/python3 -u -c
"import setuptools,
tokenize;__file__='/tmp/pip-build-hrmmx99j/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-inb19a1a-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/tmp/pip-build-hrmmx99j/scons/*
Then I changed the scons install line to "pip3 install --no-cache-dir
--egg SCons" as Daniel suggested and that one passed.
However, pip
<https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-egg>
seems to dislike --egg since it gives up pip control on the setup process.
It looks like the setup of scons does not recognize the
--single-version-externally-managed option passed down by pip when the
--no-cache-diris is used. It would be nice if scons could behave in the
expected way here since lumping packages in one command while building the
container seems to save a lot of space.
Bassem Girgis, PhD
Post by Bill Deegan
pip install -U wheel setuptools pip
pip install scons
I think this should work.
Please let us know if not.
Thanks,
-Bill
Post by Daniel Moody
Hey Bassem,
pip3 install --egg SCons
https://stackoverflow.com/a/19697682
Hi All,
I'm trying to build a docker image to host my development env. In
doing so and trying to reduce the size of the final image, I try to install
Running setup.py install for scons: started
Running setup.py install for scons: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import
setuptools, tokenize;__file__='/tmp/pip-bu
ild-bkga9xu_/scons/setup.py';f=getattr(tokenize, 'open',
open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install
--record /tmp/pip-6hnl2p1k-record/install-record.txt
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-version-externally-managed not recognized
Best regards,
Bassem Girgis, PhD
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
Daniel Moody
2017-11-24 04:07:28 UTC
Permalink
It seems there was a fix for this here:
https://bitbucket.org/scons/scons/pull-requests/113/fix-for-bug-2769-which-should-allow-scons/diff#Lsrc/setup.pyT94

but it never made it in?
Post by Bassem Girgis
I will give it a look and let you know.
----
Bassem Girgis, PhD
Cell: +1(256)479-6124 <(256)%20479-6124>
Post by Bill Deegan
http://scons.tigris.org/issues/show_bug.cgi?id=2769
Post by Daniel Moody
Bassem,
Indeed the scons packaging needs some work.
Pull requests are welcome.
The setup.py logic is ancient and hasn't been updated in a while.
(Excluding some changes to all building windows exe packages which we've
dropped with the 3.0.0 release)
It's on the list, but I'm focusing on some performance work at this time.
-Bill
Post by Bassem Girgis
*FROM opensuse:tumbleweedRUN \zypper install -y python3 python3-devel
python3-pip && \zypper clean -aRUN \pip3 install --no-cache-dir -U
setuptools wheel pip && \pip3 install --no-cache-dir scons*
*Running setup.py install for scons: started Running setup.py
install for scons: finished with status 'error' Complete output from
command /usr/bin/python3 -u -c "import setuptools,
tokenize;__file__='/tmp/pip-build-hrmmx99j/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-inb19a1a-record/install-record.txt
--single-version-externally-managed --compile: usage: -c [global_opts]
cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: -c --help [cmd1 cmd2
option --single-version-externally-managed not recognized
----------------------------------------Command "/usr/bin/python3 -u -c
"import setuptools,
tokenize;__file__='/tmp/pip-build-hrmmx99j/scons/setup.py';f=getattr(tokenize,
'open', open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
/tmp/pip-inb19a1a-record/install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in
/tmp/pip-build-hrmmx99j/scons/*
Then I changed the scons install line to "pip3 install --no-cache-dir
--egg SCons" as Daniel suggested and that one passed.
However, pip
<https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-egg>
seems to dislike --egg since it gives up pip control on the setup process.
It looks like the setup of scons does not recognize the
--single-version-externally-managed option passed down by pip when the
--no-cache-diris is used. It would be nice if scons could behave in the
expected way here since lumping packages in one command while building the
container seems to save a lot of space.
Bassem Girgis, PhD
Post by Bill Deegan
pip install -U wheel setuptools pip
pip install scons
I think this should work.
Please let us know if not.
Thanks,
-Bill
Post by Daniel Moody
Hey Bassem,
pip3 install --egg SCons
https://stackoverflow.com/a/19697682
Hi All,
I'm trying to build a docker image to host my development env. In
doing so and trying to reduce the size of the final image, I try to install
Running setup.py install for scons: started
Running setup.py install for scons: finished with status 'error'
Complete output from command /usr/bin/python3 -u -c "import
setuptools, tokenize;__file__='/tmp/pip-bu
ild-bkga9xu_/scons/setup.py';f=getattr(tokenize, 'open',
open)(__file__);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, __file__, 'exec'))" install
--record /tmp/pip-6hnl2p1k-record/install-record.txt
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-version-externally-managed not recognized
Best regards,
Bassem Girgis, PhD
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
_______________________________________________
Scons-users mailing list
https://pairlist4.pair.net/mailman/listinfo/scons-users
Loading...