Python-spe-users Digest, Vol 15, Issue 3

[email protected] Sun, 29 Jun 2008 12:01:06 +0200
Newsgroups gmane.comp.python.spe.user
Message-ID <[email protected]>
Send Python-spe-users mailing list submissions to
	[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.berlios.de/mailman/listinfo/python-spe-users
or, via email, send a message with subject or body 'help' to
	[email protected]

You can reach the person managing the list at
	[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-spe-users digest..."


_______________________________________________
http://pythonide.stani.be
http://pythonide.stani.be/manual/html/manual.html
http://pythonide.stani.be/blog/sm_donate _______________________________________________


Today's Topics:

   1. Re: [Patch] "setup.py sdist" and "setup.py	install"	don't
      work (Stani)
   2. Re: [Patch] "setup.py sdist" and "setup.py install" don't
      work (Jason Kankiewicz)


----------------------------------------------------------------------

Message: 1
Date: Sat, 28 Jun 2008 17:43:53 +0200
From: Stani <[email protected]>
Subject: Re: [spe-users] [Patch] "setup.py sdist" and "setup.py
	install"	don't work
To: Mailing list for spe users <[email protected]>
Message-ID: <1214667833.26856.5.camel@blue>
Content-Type: text/plain; charset=utf-8

Hi Jason,
Thanks for your will to contribute. ?Are you on Windows? The setup.py
was included for linux installations, which do not install the plugins
from the SPE package so that is why they are not in the manifesto.
(wxglade, kiki, winpdb are installed by their own packages.) To make it
easy for Windows, where there is no packaging system, I decided to
include them inside the SPE source tree.
SPE can be used by just unzipping and running SPE.py. There is no need
for it to be in the site-packages path as it is not a library but an
application. Is there specific reason why you want to install spe with
setup.py? 
Best regards,
Stani

Op vrijdag 27-06-2008 om 07:39 uur [tijdzone -0700], schreef Jason
Kankiewicz:
> http://pythonide.stani.be
> http://pythonide.stani.be/manual/html/manual.html
> http://pythonide.stani.be/blog/sm_donate
> --
> 
> 
> The top level "spe" directory is missing a manifest template so the 
> generated source distribution is missing a lot of files. It's also 
> missing a version number specification so it's named "spe-0.0.0".
> 
> The distutils script is missing package and package data items for the 
> plugins so they don't get installed.
> 
> The attached patch is against r346.
> platte tekst-document bijlage (spe_sdist_install.patch)
> Index: MANIFEST.in
> ===================================================================
> --- MANIFEST.in	(revision 0)
> +++ MANIFEST.in	(revision 0)
> @@ -0,0 +1,9 @@
> +include COPYING MANIFEST* NEWS *.desktop *.sgml
> +include _spe/plugins/winpdb/PKG-INFO
> +include _spe/plugins/winpdb/rpdb2
> +include _spe/plugins/winpdb/winpdb
> +include _spe/plugins/wxGlade/Makefile
> +include _spe/plugins/wxGlade/wxglade
> +include _spe/plugins/XRCed/sawfishrc
> +recursive-include _spe *.ad *.bat *.blend *.cfg *.conf *.dwg *.gif *.htm *.html *.ico *.jpg *.mo *.png *.po *.pot *.py *.pyw *.sh *.spec *.svg *.txt *.wgt *.wmf *.wxg *.xpm *.xrc
> +global-exclude .svn/*
> Index: setup.py
> ===================================================================
> --- setup.py	(revision 346)
> +++ setup.py	(working copy)
> @@ -1,15 +1,143 @@
>  #/usr/bin/python
>  from distutils.core import setup
> +from _spe.info import INFO
>  
>  setup(name          = "spe",
> -      description   = """Python IDE with UML, PyChecker Source Code Doctor, WinPdb Debugger, wxGlade and XRCed GUI designers and Blender support.""",
> -      author        = "www.stani.be",
> -      author_email  = "[email protected]",
> -      url           = "http://pythonide.stani.be",
> -      license       = "GPL",
> -      scripts       = ['_spe/spe'],
> -      packages      = ['_spe', '_spe.dialogs', '_spe.examples', '_spe.plugins', '_spe.shortcuts', '_spe.sidebar',
> -                       '_spe.skins', '_spe.sm', '_spe.tabs', '_spe.view', '_spe.skins.default', '_spe.sm.wxp'],
> -      package_data  = {'_spe': ['defaults.cfg', 'doc/donate.html', 'doc/about.htm', 'skins/default/*', 'images/*']}
> +    description   = """Python IDE with UML, PyChecker Source Code Doctor, WinPdb Debugger, wxGlade and XRCed GUI designers and Blender support.""",
> +    author        = "www.stani.be",
> +    author_email  = "[email protected]",
> +    url           = "http://pythonide.stani.be",
> +    license       = "GPL",
> +    scripts       = ['_spe/spe'],
> +    packages      = [
> +        '_spe',
> +        '_spe.dialogs',
> +        '_spe.examples',
> +        '_spe.plugins',
> +        '_spe.plugins.kiki',
> +        '_spe.plugins.pychecker',
> +        '_spe.plugins.pychecker2',
> +        '_spe.plugins.winpdb',
> +        '_spe.plugins.wxGlade',
> +        '_spe.plugins.wxGlade.edit_sizers',
> +        '_spe.plugins.wxGlade.widgets',
> +        '_spe.plugins.wxGlade.widgets.bitmap_button',
> +        '_spe.plugins.wxGlade.widgets.button',
> +        '_spe.plugins.wxGlade.widgets.calendar_ctrl',
> +        '_spe.plugins.wxGlade.widgets.checkbox',
> +        '_spe.plugins.wxGlade.widgets.choice',
> +        '_spe.plugins.wxGlade.widgets.combo_box',
> +        '_spe.plugins.wxGlade.widgets.custom_widget',
> +        '_spe.plugins.wxGlade.widgets.datepicker_ctrl',
> +        '_spe.plugins.wxGlade.widgets.dialog',
> +        '_spe.plugins.wxGlade.widgets.frame',
> +        '_spe.plugins.wxGlade.widgets.gauge',
> +        '_spe.plugins.wxGlade.widgets.grid',
> +        '_spe.plugins.wxGlade.widgets.list_box',
> +        '_spe.plugins.wxGlade.widgets.list_ctrl',
> +        '_spe.plugins.wxGlade.widgets.menubar',
> +        '_spe.plugins.wxGlade.widgets.notebook',
> +        '_spe.plugins.wxGlade.widgets.panel',
> +        '_spe.plugins.wxGlade.widgets.radio_box',
> +        '_spe.plugins.wxGlade.widgets.radio_button',
> +        '_spe.plugins.wxGlade.widgets.slider',
> +        '_spe.plugins.wxGlade.widgets.spacer',
> +        '_spe.plugins.wxGlade.widgets.spin_button',
> +        '_spe.plugins.wxGlade.widgets.spin_ctrl',
> +        '_spe.plugins.wxGlade.widgets.splitter_window',
> +        '_spe.plugins.wxGlade.widgets.static_bitmap',
> +        '_spe.plugins.wxGlade.widgets.static_line',
> +        '_spe.plugins.wxGlade.widgets.static_text',
> +        '_spe.plugins.wxGlade.widgets.text_ctrl',
> +        '_spe.plugins.wxGlade.widgets.toggle_button',
> +        '_spe.plugins.wxGlade.widgets.toolbar',
> +        '_spe.plugins.wxGlade.widgets.tree_ctrl',
> +        '_spe.plugins.XRCed',
> +        '_spe.shortcuts',
> +        '_spe.sidebar',
> +        '_spe.skins',
> +        '_spe.sm',
> +        '_spe.tabs',
> +        '_spe.view',
> +        '_spe.skins.default',
> +        '_spe.sm.wxp',
> +    ],
> +    package_data  = {
> +        '_spe': [
> +            'spe',
> +            '*.blend',
> +            '*.dwg',
> +            '*.pyw',
> +            '*.txt',
> +            '*.wmf',
> +            '*.wxg',
> +            'defaults.cfg',
> +            'dialogs/*.wxg',
> +            'dialogs/*.txt',
> +            'doc/donate.html',
> +            'doc/about.htm',
> +            'doc/*.py',
> +            'examples/*.txt',
> +            'skins/*.jpg',
> +            'skins/default/*',
> +            'tabs/*.wxg',
> +            'test/*.py',
> +            'test/*.wxg',
> +            'images/*'
> +        ],
> +        '_spe.plugins.pychecker': [
> +            '*.ad',
> +        ],
> +        '_spe.plugins.pychecker2': [
> +            '*.txt',
> +        ],
> +        '_spe.plugins.kiki': [
> +            '*.bat',
> +            '*.ico',
> +            '*.txt',
> +            '*.wxg',
> +            'docs/*.html',
> +        ],
> +        '_spe.plugins.winpdb': [
> +            'PKG-INFO',
> +            'rpdb2',
> +            'winpdb',
> +            '*.txt',
> +            'artwork/*.png',
> +            'artwork/*.svg',
> +        ],
> +        '_spe.plugins.wxGlade': [
> +            'Makefile',
> +            'wxglade',
> +            '*.conf',
> +            '*.pyw',
> +            '*.spec',
> +            '*.txt',
> +            'codegen/*.py',
> +            'icons/*.ico',
> +            'icons/*.png',
> +            'icons/*.xpm',
> +            'icons/gtk/*.xpm',
> +            'icons/msw/*.xpm',
> +            'locale/en/LC_MESSAGES/*.mo',
> +            'locale/it/LC_MESSAGES/*.mo',
> +            'locale/ja/LC_MESSAGES/*.mo',
> +            'po/*.po',
> +            'po/*.pot',
> +            'res/*.wxg',
> +            'templates/*.wgt',
> +            'widgets/*.txt',
> +        ],
> +        '_spe.plugins.XRCed': [
> +            'sawfishrc',
> +            '*.ico',
> +            '*.png',
> +            '*.sh',
> +            '*.txt',
> +            '*.xrc',
> +            'src-images/*.png',
> +        ],
> +    },
> +    version = INFO["version"],
>  )
>  
> _______________________________________________
> Python-spe-users mailing list
> [email protected]
> https://lists.berlios.de/mailman/listinfo/python-spe-users



------------------------------

Message: 2
Date: Sat, 28 Jun 2008 19:05:04 -0700
From: Jason Kankiewicz <[email protected]>
Subject: Re: [spe-users] [Patch] "setup.py sdist" and "setup.py
	install" don't work
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=UTF-8; format=flowed

Stani wrote:
> http://pythonide.stani.be
> http://pythonide.stani.be/manual/html/manual.html
> http://pythonide.stani.be/blog/sm_donate
> --
> 
> 
> Hi Jason,
> Thanks for your will to contribute. ?Are you on Windows? The setup.py
> was included for linux installations, which do not install the plugins
> from the SPE package so that is why they are not in the manifesto.
> (wxglade, kiki, winpdb are installed by their own packages.) To make it
> easy for Windows, where there is no packaging system, I decided to
> include them inside the SPE source tree.
> SPE can be used by just unzipping and running SPE.py. There is no need
> for it to be in the site-packages path as it is not a library but an
> application. Is there specific reason why you want to install spe with
> setup.py? 
> Best regards,
> Stani
> 
Stani,
   You're more than welcome; SPE is a great product and I'd like to make 
it easier to distribute and install.

   I'm actually not using Windows but rather Red Hat Enterprise Linux.

   There is a specific reason why I want to install SPE with setup.py. 
My employer's custom Python software is (naturally) managed 
independently of the Red Hat packaging system and we have to maintain 
multiple platform-specific installations of Python and third-party 
Python libraries and tools along with it. Our build system relies upon 
the presence of a working setup.py in the archived tarball of every 
third-party library and tool that is integrated into our Python 
installations. Unfortunately, SPE's setup.py can neither produce a 
version-labeled, complete tarball nor a complete installation if its 
plug-ins aren't installed independently. The latter problem is 
especially acute with Kiki and wxGlade because they don't include a 
setup.py in their distributions at all.

   Being that SPE is designed to favor launching the 
independently-installed versions of the plug-ins over its own, SPE's 
redundant plug-in installations aren't an issue for us. It's especially 
nice to have SPE's setup.py install pychecker2 automatically because it 
won't work without it.

   I submitted this patch so that others in our situation would not be 
discouraged from using SPE just because it can't be distributed and 
installed like most other Python tools.

Regards,
Jason



------------------------------

_______________________________________________
Python-spe-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/python-spe-users


End of Python-spe-users Digest, Vol 15, Issue 3
***********************************************