Re: Docker container added for Roundup

"John P. Rouillard" <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
Hi Norbert:


In message <[email protected]>,
SCHLEMMER Norbert writes:
>2) built image
>
>docker build -f scripts/Dockerfile -t roundup-app --build-arg="source=pypi" --rm .

Ok this is the issue.

 The pypi install builds a wheel and puts all the shared files
under:/usr/local/lib/python3.10/site-packages/usr/local/share/ rather
than putting them in /usr/local/share.

There is code in the 2.1.0 setup.py installer
(make_data_files_absolute) that is supposed to detect and fix this.
It's a side effect of changing to setuptools. Apparently it's not
working 8-(.

The man pages, locale files etc. need to live outside of the python
site-packages directory to be useful. On a Docker it's less important
but the same install process has to work on a non-containerized
platform as well. 

I changed the Dockerfile to link them to the right place. This wastes
a bit of disk space, but it's minimal.

Please change your Dockerfile and replace the part starting with
if [ "$source" = "pypiy" with this stanza: 


    if [ "$source" = "pypi" ]; then pip install roundup; \
        cp -ril /usr/local/lib/python3.10/site-packages/usr/local/share/* \
           /usr/local/share; fi

Then rebuild and you should be ok.

Created a new issue against the roundup setup code.

--
				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.