[Scons-dev] setuptools and entry_points

Bill Deegan bill at baddogconsulting.com
Thu Apr 14 20:37:12 EDT 2016


Jason,

I'm trying the following:
    'entry_points'       : {
        'console_scripts': [
            'sconszz = SCons.Script.Main:main',
        ],
    },

but python setup.py install doesn't yield a script named "sconszz".

Am I missing something?

Thanks,
Bill

On Thu, Apr 14, 2016 at 7:03 PM, Jason Kenny <dragon512 at live.com> wrote:

> Wow so quick J
>
>
>
> You might want to add to setup.py something like ( From Parts… ie what
> makes the parts script/exe.. which for me just prints out a version number
> of Parts)
>
>
>
> entry_points={
>
> 'console_scripts': [ 'parts=parts.version_info:parts_version_text' ],
>
>                                 },
>
>
>
> Here is a quick link to get started on what this is.
>
>
>
> http://stackoverflow.com/questions/774824/explain-python-entry-points
>
> https://pythonhosted.org/setuptools/pkg_resources.html#entry-points
>
>
>
> This replaces the need to have a scons.bat as this does the setup entry
> point work and makes a scons.exe. On linux it make a matching shell script
> with the correct #! Stuff at the start
>
>
>
> Hope this helps
>
>
>
> Jason
>
>
>
> *From:* Scons-dev [mailto:scons-dev-bounces at scons.org] *On Behalf Of *Bill
> Deegan
> *Sent:* Thursday, April 14, 2016 5:50 PM
>
> *To:* SCons developer list <scons-dev at scons.org>
> *Subject:* Re: [Scons-dev] SCons 2.5.0 Released
>
>
>
> I hid the 2.5.0.post1 package..
>
> work continues..
>
>
>
> On Thu, Apr 14, 2016 at 6:43 PM, Bill Deegan <bill at baddogconsulting.com>
> wrote:
>
> Hmm... It installed o.k but it doesn't run.
>
> (no .bat's installed)
>
>
>
> On Thu, Apr 14, 2016 at 6:21 PM, Bill Deegan <bill at baddogconsulting.com>
> wrote:
>
> I think I've resolved the issue.
>
> I built a wheel and uploaded both that and the sdist to pypi.
>
> I bumped the version string to 2.5.0-1 which shows up on pypi as
> SCons 2.5.0.post1
>
> Please give it a try. It seems to work for me.
>
> -Bill
>
>
>
> On Thu, Apr 14, 2016 at 4:02 PM, Bill Deegan <bill at baddogconsulting.com>
> wrote:
>
> Jason,
>
> Yup. I agree still a bug.
>
> Does explain why I wasn't seeing it when I tried to reproduce.
>
> I'll see if I can resolve.
>
> -Bill
>
>
>
> On Thu, Apr 14, 2016 at 2:15 PM, Jason Kenny <dragon512 at live.com> wrote:
>
> Well that seems to be the clue.
>
>
>
> I did the test again with a virtualenv setup and it works on
> window/mac/etc just fine. It fails when not installing into a virtualenv
> setup.
>
>
>
> I think that still is a bug. However at least there is some reason why
> this fails outside a virtualenv constantly.
>
>
>
> Jason
>
>
>
> *From:* Scons-dev [mailto:scons-dev-bounces at scons.org] *On Behalf Of *Bill
> Deegan
> *Sent:* Thursday, April 14, 2016 12:52 PM
>
>
> *To:* SCons developer list <scons-dev at scons.org>
> *Subject:* Re: [Scons-dev] SCons 2.5.0 Released
>
>
>
> Works for me on mac.. (in a virtualenv)
>
>  pip install scons
> Collecting scons
> Installing collected packages: scons
> Successfully installed scons-2.5.0
> (venv)ProDog:tmp bdbaddog$ pip --version
> pip 8.1.1 from /Users/bdbaddog/tmp/venv/lib/python2.7/site-packages
> (python 2.7)
> (venv)ProDog:tmp bdbaddog$ scons --version
> SCons by Steven Knight et al.:
>     script: v2.5.0.rel_2.5.0:3544:95d356f188a3[MODIFIED], 2016/04/09
> 14:38:50, by bdbaddog on ubuntu1404-32bit
>     engine: v2.5.0.rel_2.5.0:3544:95d356f188a3[MODIFIED], 2016/04/09
> 14:38:50, by bdbaddog on ubuntu1404-32bit
>     engine path:
> ['/Users/bdbaddog/tmp/venv/lib/python2.7/site-packages/scons-2.5.0/SCons']
> Copyright (c) 2001 - 2016 The SCons Foundation
>
> -Bill
>
>
>
> On Thu, Apr 14, 2016 at 1:36 PM, Jason Kenny <dragon512 at live.com> wrote:
>
> Yes, and my Mac at work as well… using pip 8.1.1
>
>
>
> sudo -H pip install scons
>
> Collecting scons
>
>   Downloading scons-2.5.0.tar.gz (620kB)
>
>     100% |████████████████████████████████| 622kB 585kB/s
>
> Installing collected packages: scons
>
>   Running setup.py install for scons ... error
>
>     Complete output from command /usr/bin/python -u -c "import setuptools,
> tokenize;__file__='/private/tmp/pip-build-aojj8g/scons/setup.py';exec(compile(getattr(tokenize,
> 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
> install --record /tmp/pip-LQaie_-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
>
>
>
>
>
> Like I said the only system I have that works is a Ubuntu system.
>
>
>
> Jason
>
>
>
> *From:* Scons-dev [mailto:scons-dev-bounces at scons.org] *On Behalf Of *Bill
> Deegan
> *Sent:* Thursday, April 14, 2016 12:30 PM
>
>
> *To:* SCons developer list <scons-dev at scons.org>
> *Subject:* Re: [Scons-dev] SCons 2.5.0 Released
>
>
>
> Jason,
>
> You get this issue on fedora and RHEL with latest pip as well?
>
> -Bill
>
>
>
> On Thu, Apr 14, 2016 at 1:28 PM, Jason Kenny <dragon512 at live.com> wrote:
>
> I was getting this on fedora as well and RHEL.
>
>
>
> So I don’t think it 100% a windows issue.
>
>
>
> Jason
>
>
>
> *From:* Scons-dev [mailto:scons-dev-bounces at scons.org] *On Behalf Of *Bill
> Deegan
> *Sent:* Thursday, April 14, 2016 12:28 PM
>
>
> *To:* SCons developer list <scons-dev at scons.org>
> *Subject:* Re: [Scons-dev] SCons 2.5.0 Released
>
>
>
> Jason,
>
> I reproduced this on my windows box.
>
> Curious that it seems to be windows only issue.
>
> I'll see if I can resolve.
>
> -Bill
>
>
>
> On Thu, Apr 14, 2016 at 12:50 PM, Jason Kenny <dragon512 at live.com> wrote:
>
> Hope you are feeling better!
>
>
>
> Thanks
>
> Jason
>
>
>
> *From:* Scons-dev [mailto:scons-dev-bounces at scons.org] *On Behalf Of *Bill
> Deegan
> *Sent:* Thursday, April 14, 2016 11:49 AM
>
>
> *To:* SCons developer list <scons-dev at scons.org>
> *Subject:* Re: [Scons-dev] SCons 2.5.0 Released
>
>
>
> Sorry.. came down with a stomach flu this week and though I plan to get
> lots done it's just sucking the energy out of me.
>
> I'll try to give this a shot today.
>
> -Bill
>
>
>
> On Thu, Apr 14, 2016 at 11:13 AM, Jason Kenny <dragon512 at live.com> wrote:
>
> Hi, just pinging on this subject?
>
>
>
> Jason
>
>
>
>
>
> *From:* Scons-dev [mailto:scons-dev-bounces at scons.org] *On Behalf Of *Bill
> Deegan
> *Sent:* Monday, April 11, 2016 8:41 PM
> *To:* SCons developer list <scons-dev at scons.org>
>
>
> *Subject:* Re: [Scons-dev] SCons 2.5.0 Released
>
>
>
> Jason,
>
> I'll try it on my windows box tomorrow.
>
> -Bill
>
>
>
> On Mon, Apr 11, 2016 at 8:21 PM, Jason Kenny <dragon512 at live.com> wrote:
>
> Hi Bill,
>
>
>
> I have tried this on different system. Below is from a fresh VM of windows
> with python 2.7.11. I believe only Ubuntu has worked in at all. Fedora and
> Mac and other system fails the same basic way of
> --single-version-externally-managed is unknown option.
>
>
>
> PS C:\WINDOWS\system32> python -m pip install --upgrade pip
> Collecting pip
>   Using cached pip-8.1.1-py2.py3-none-any.whl
> Installing collected packages: pip
>   Found existing installation: pip 7.1.2
>     Uninstalling pip-7.1.2:
>       Successfully uninstalled pip-7.1.2
> Successfully installed pip-8.1.1
>
>
>
> PS C:\WINDOWS\system32> pip --version
> pip 8.1.1 from c:\python27\lib\site-packages (python 2.7)
>
>
> PS C:\WINDOWS\system32> pip install scons
> Collecting scons
>   Using cached scons-2.5.0.tar.gz
> Installing collected packages: scons
>   Running setup.py install for scons ... error
>     Complete output from command c:\python27\python.exe -u -c "import
> setuptools, tokenize;__file__='c:\\users\\me\\
> appdata\\local\\temp\\pip-build-0zvxsb\\scons\\setup.py';exec(compile(getattr(tokenize,
> 'open', open)(__file__).read().r
> eplace('\r\n', '\n'), __file__, 'exec'))" install --record
> c:\users\me\appdata\local\temp\pip-l1ufkk-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 "c:\python27\python.exe -u -c "import setuptools,
> tokenize;__file__='c:\\users\\me\\appdata\\local\\temp\\pi
> p-build-0zvxsb\\scons\\setup.py';exec(compile(getattr(tokenize, 'open',
> open)(__file__).read().replace('\r\n', '\n'), __
> file__, 'exec'))" install --record
> c:\users\me\appdata\local\temp\pip-l1ufkk-record\install-record.txt
> --single-vers
> ion-externally-managed --compile" failed with error code 1 in
> c:\users\me\appdata\local\temp\pip-build-0zvxsb\scons\
>
>
>
>
>
> I know I am not the only one seeing this.
>
>
>
> Jason
> ------------------------------
>
> Date: Mon, 11 Apr 2016 16:47:41 -0400
> From: bill at baddogconsulting.com
> To: scons-dev at scons.org
> Subject: Re: [Scons-dev] SCons 2.5.0 Released
>
>
>
> pip install works for me.
>
> What version of pip are you running?
>
> I tried the latest and a previous version.
>
> -Bill
>
>
>
> On Mon, Apr 11, 2016 at 4:27 PM, Jason Kenny <dragon512 at live.com> wrote:
>
> One other low hanging fruit would be to fix the pip install issues.
>
> Jason
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
>
>
> _______________________________________________ Scons-dev mailing list
> Scons-dev at scons.org https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
>
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
>
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
>
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
>
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
>
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Scons-dev mailing list
> Scons-dev at scons.org
> https://pairlist2.pair.net/mailman/listinfo/scons-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist2.pair.net/pipermail/scons-dev/attachments/20160414/b4ee975e/attachment-0001.html>


More information about the Scons-dev mailing list