Re: Distribute a Python module, without tying it to a specific version Python?

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

 



Martijn Ras wrote:

Is it possible to create a RPM package to distribute a python module,
without tying it to a specific version Python?

If the module / package is "pure Python", then yes: best practice anyway is to avoid packaging the ".pyc" / ".pyo" files, and instead use the "local" python to generate them during the "%post" script.


You would just declare a dependency on the "python" RPM, and use the "canonical" python (/usr/bin/python) to do the recompile.

Of course, this presumes that your module / package doesn't use language features which are not present in earlier versions of Python.

Tres.
--
===============================================================
Tres Seaver                                tseaver@xxxxxxxx
Zope Corporation      "Zope Dealers"       http://www.zope.com

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/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