Re: How to add a python script to an RPM in the right way?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks, i will use this file as a reference to write better spec files ...

Dotan

On Wed, Dec 24, 2008 at 5:56 PM,  <Greg_Swift@xxxxxxxxxxxxxxxxx> wrote:
>> On Wed, Dec 24, 2008 at 4:49 PM,  <Greg_Swift@xxxxxxxxxxxxxxxxx> wrote:
>> >> I'm trying to add several python scripts to an RPM.
>> >> For all of the scripts but one, .pyc and .pyo files are being created.
>> >>
>> >> For a specific file (every time the same file) the .pyc and .pyo are
>> >> sometimes being generated
>> >> (i don't really understand why the behavior is not consistent).
>> >>
>> >> Can anyone know how to handle this issue?
>> >
>> > could you please provide your spec file?
>> >
>> > -greg
>> >
>>
>> I attached the spec file.
>>
>> The problem is that sometimes the bytecode files of python (pyc/pyo)
>> aren't being created and the RPM creation fails ...
>>
>> Thanks for the quick response
>> Dotan
>>
>
> Well, the layout of the source tarball is kind of important in this
> scenario, but I made the assumption that it looked something like this:
>
> # tar -tjf my-rpm.tar.bz2
> my-rpm/
> my-rpm/script1.py
> my-rpm/script2.py
> my-rpm/script3.py
>
> Based on that I made adjustments to the spec.  its attached.  I haven't
> tested it, but if the tarball is like that there shouldnt be any changes
> necessary.
>
> -greg
>
> ps. please don't top post if you can avoid it.
> (See attached file: my-rpm.spec)
> _______________________________________________
> Rpm-list mailing list
> Rpm-list@xxxxxxxxxxxxx
> http://lists.rpm.org/mailman/listinfo/rpm-list
>
>
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux