Mailinglist Archive: opensuse-packaging (31 mails)

< Previous Next >
Re: [opensuse-packaging] Separating python modules into packages
Hi Axel,

I need to separate one module from a build of a python package into a
separate package.

First question: which Python version(s)? Is this package for Python 3
only or do you need to support both (2 and 3)?


[...]
No surprise, as this is not the location for the module.
So, I've defined a variable to keep the path:
%define t_path $(ls
-d /usr/lib/python3.* )/site-packages/trytond/modules

That definition looks wrong to me. ;)

I guess you already have the "python-rpm-macros" package as build
requirement. Shell expansions is tricky, so I would better rely on
these Python macros.

If you need Python3 only, I would try to redefine the variable like
this:

%define t_path %{python3_sitelib}/trytond/modules

Here is an overview of these macros:

https://github.com/openSUSE/python-rpm-macros

As I don't know your project, I'm not 100% sure what else you need.


[...]

Good luck, hope that helps.

--
Gruß/Regards,
Thomas Schraitle

----------------------------------------------------------------------
SUSE LINUX GmbH (o<
Maxfeldstrasse 5 /\\ Documentation Specialist
90409 Nuernberg, Germany _\_v http://www.suse.com
https://github.com/tomschr
GF: Felix Imendörffer, Jane Smithard, Dilip Upmanyu, Graham Norton,
HRB 21284 (AG Nürnberg)
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups
References