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

%define t_path %{python3_sitelib}/trytond/modules

Here is an overview of these macros:

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


Good luck, hope that helps.

Thomas Schraitle

Maxfeldstrasse 5 /\\ Documentation Specialist
90409 Nuernberg, Germany _\_v
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