[Scons-users] --no-cache-dir

Bill Deegan bill at baddogconsulting.com
Thu Nov 23 19:26:22 EST 2017


Note there exists a bug for this:
http://scons.tigris.org/issues/show_bug.cgi?id=2769

On Thu, Nov 23, 2017 at 4:24 PM, Bill Deegan <bill at baddogconsulting.com>
wrote:

> 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
>
> On Wed, Nov 22, 2017 at 8:52 PM, Bassem Girgis <brgirgis at gmail.com> wrote:
>
>> 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
>>
>> Email: brgirgis at gmail.com
>>
>> On Mon, Nov 20, 2017 at 1:48 PM, Bill Deegan <bill at baddogconsulting.com>
>> wrote:
>>
>>> pip install -U wheel setuptools pip
>>> pip install scons
>>>
>>> I think this should work.
>>> Please let us know if not.
>>>
>>> Thanks,
>>> -Bill
>>>
>>> On Mon, Nov 20, 2017 at 2:46 PM, Daniel Moody <dmoody256 at gmail.com>
>>> wrote:
>>>
>>>> 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" <brgirgis at 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-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
>>>> --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: brgirgis at gmail.com
>>>>
>>>> _______________________________________________
>>>> Scons-users mailing list
>>>> Scons-users at scons.org
>>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Scons-users mailing list
>>>> Scons-users at scons.org
>>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Scons-users mailing list
>>> Scons-users at scons.org
>>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>>
>>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20171123/a0307d54/attachment.html>


More information about the Scons-users mailing list