Re: [opensuse-packaging] Dealing with Python3's implicit namespace packages
On Thursday, February 28, 2019 2:00:31 PM CET John Paul Adrian Glaubitz wrote:
Does anyone have any idea how to deal with implicit namespace packages?
You create the directory in the section %prep, but later is removed by the system: /usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/python-azure- nspkg-3.0.2-7.1.x86_64 I do not have experiences with namespaces packages in python, but I wonder why you create the directory manually and is not created by setuptools? I for some reason you need to create this directory, try in the %install section. -- SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi! On 2/28/19 2:20 PM, aplanas@suse.de wrote:
You create the directory in the section %prep, but later is removed by the system:
/usr/bin/rm -rf /home/abuild/rpmbuild/BUILDROOT/python-azure- nspkg-3.0.2-7.1.x86_64
I tried creating the directory in different sections of the spec file and if I remember correctly, marking the directory with %dir in the %files section would prevent removal.
I do not have experiences with namespaces packages in python, but I wonder why you create the directory manually and is not created by setuptools?
I was expecting that, too. But setuptools doesn't do that. According to the description from the PIP package [1], the python3 version of the package is empty [1].
I for some reason you need to create this directory, try in the %install section.
I did move the mkdir around in various places of the spec file, but I couldn't get it to work. Adrian -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
On 2/28/19 2:28 PM, John Paul Adrian Glaubitz wrote:
I was expecting that, too. But setuptools doesn't do that. According to the description from the PIP package [1], the python3 version of the package is empty [1].
Forgot the reference:
[1] https://pypi.org/project/azure-nspkg/ -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
Hi! I managed to get it to build properly now, see [1]. Adrian
[1] https://build.opensuse.org/package/show/home:glaubitz:branches:devel:languag... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org
participants (2)
-
aplanas@suse.de
-
John Paul Adrian Glaubitz