Re: packing an rpm without source code?
Erik Blankinship wrote: > Can someone point me at an example of how to package a fedora python > rpm without the source code (only the .pyc or .pyo files)? > > Would I make this change in my spec file? > > Thank you for your help. > > > > > ___ > python-devel mailing list > [email protected] > https://admin.fedoraproject.org/mailman/listinfo/python-devel For fedora? You don't. You must have source code. -J -- in your fear, seek only peace in your fear, seek only love -d. bowie ___ python-devel mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/python-devel
Re: packing an rpm without source code?
On 01/24/2011 05:36 AM, Erik Blankinship wrote: > Can someone point me at an example of how to package a fedora python rpm > without the source code (only the .pyc or .pyo files)? > > Would I make this change in my spec file? > > Thank you for your help. > > You can't, it's against packaging guidelines See: http://fedoraproject.org/wiki/Packaging/Python#Source_files -- Athmane Madjoudj ___ python-devel mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/python-devel
Re: packing an rpm without source code?
On Mon, Jan 24, 2011 at 8:13 AM, Athmane Madjoudj wrote: > On 01/24/2011 05:36 AM, Erik Blankinship wrote: > > Can someone point me at an example of how to package a fedora python rpm > > without the source code (only the .pyc or .pyo files)? > > > > Would I make this change in my spec file? > > > > Thank you for your help. > > > > > > You can't, it's against packaging guidelines > > See: http://fedoraproject.org/wiki/Packaging/Python#Source_files > > While I appreciate and would like to respect the guidelines, is it technically possible to create a python rpm without source? This rpm would only be distributed as a downloadable file (not via yum). ___ python-devel mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/python-devel
best practices for python applications targeting f11 gnome on the olpc xo
What would be the best practice for python applications targeting f11 gnome on the olpc xo? I am developing on f13, but my target is f11 (an olpc xo machine) running python 2.6. The rpms I am generating have the name: SunnyApp-1.1-1.fc13.noarch.rpm Two things here stand out to me (the very new rpm packager) which suggest I have not done a great job targeting my platform. 1. fc13 2. noarch I would like to make sure the rpms are as compatible as possible with that platform. Also, I have some code in my application which is python 2.6 specific -- is there a way to designate/enforce that in the file to ensure it runs smoothly? Thank you! ___ python-devel mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/python-devel
how to include lots of media assets into a python rpm?
I have a lot of media assets to include in my python rpm. I am confused as
to the best way to include these files in my rpm.
Here is my setup:
setup.py
sun.py
gfx/sun_1.png
gfx/sun_2.png
gfx/sun_3.png
gfx/core/core_1.png
gfx/core/core_2.png
...
gfx/core/core_99.png
I list everything I want to include in my manifest.in file with:
recursive-include gfx *.png
and when I make a source tar.gz ( via python setup.py bdist --format=rpm )
all of the media assets are included in the resultant tar.gz bundle.
Then I move the source tar.gz into ~/rpmbuild/SOURCES/ and then I run rpmbuild
-ba SunnyApp.spec
Unfortunately, none of the gfx are transfered over. However, if I modify
my setup.py as follows:
from setuptools import find_packages
pkgs = find_packages( )
setup( name='SunnyApp',
...
data_files=[ ('SunnyApp/gfx', ['gfx/sun_1.png', 'gfx/sun_2.png'] ),
('SunnyApp/gfx/core', ['gfx/core/core_1.png',
'gfx/core/core_2.png'] ) ],
...
packages=pkgs,
)
Only those files that I list make it into the rpm (in this case sun_1.png,
sun_2.png, core_1.png, core_2.png) Unfortunately, there does not appear to
be a way to include *.png for all subdirectories in gfx.
Is there a way to include lots of files with a pattern when calling
rpmbuild? I am not sure how to use package_data to list wildcards because
of how I am using packages=find_packages( )
Any suggestions? Thanks much.
___
python-devel mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/python-devel
Re: how to include lots of media assets into a python rpm?
On Mon, 2011-01-24 at 21:02 -0500, Erik Blankinship wrote: > Unfortunately, there does not appear to be a way to include *.png for > all subdirectories in gfx. You might find os.walk() or glob.glob() useful here. -- Ignacio Vazquez-Abrams signature.asc Description: This is a digitally signed message part ___ python-devel mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/python-devel
Re: how to include lots of media assets into a python rpm?
On Mon, Jan 24, 2011 at 9:14 PM, Ignacio Vazquez-Abrams < [email protected]> wrote: > On Mon, 2011-01-24 at 21:02 -0500, Erik Blankinship wrote: > > Unfortunately, there does not appear to be a way to include *.png for > > all subdirectories in gfx. > > You might find os.walk() or glob.glob() useful here. > > Thank you for introducing me to glob. Problem solved. That's a great function! ___ python-devel mailing list [email protected] https://admin.fedoraproject.org/mailman/listinfo/python-devel
Re: how to include lots of media assets into a python rpm?
Erik Blankinship wrote:
> Unfortunately, none of the gfx are transfered over. However, if I
> modify my setup.py as follows:
>
> from setuptools import find_packages
>
> pkgs = find_packages( )
>
> setup( name='SunnyApp',
> ...
> data_files=[ ('SunnyApp/gfx', ['gfx/sun_1.png',
> 'gfx/sun_2.png'] ),
> ('SunnyApp/gfx/core', ['gfx/core/core_1.png',
> 'gfx/core/core_2.png'] ) ],
> ...
> packages=pkgs,
>
> )
>
> Only those files that I list make it into the rpm (in this case
> sun_1.png, sun_2.png, core_1.png, core_2.png) Unfortunately, there does
> not appear to be a way to include *.png for all subdirectories in gfx.
>
> Is there a way to include lots of files with a pattern when calling
> rpmbuild? I am not sure how to use package_data to list wildcards
> because of how I am using packages=find_packages( )
>
> Any suggestions? Thanks much.
Since it's setuptools-based project use include_package_data=True.
This is documented at
--
Zart
___
python-devel mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/python-devel
