On 11/14/2015 11:04 PM, Axel Braun wrote:
Hi all,
I was recently building new modules for the tryton-server. One of the modules runs a test-script:
%check python setup.py test
Problem: Unlike the installation, which takes all resources from the repository (e.g. the server module trytond), the test wants to download this from pypi:
[ 39s] + python setup.py test [ 39s] running test [ 39s] Searching for trytond>=3.8,<3.9 [ 39s] Reading https://pypi.python.org/simple/trytond/ [ 39s] Download error on https://pypi.python.org/simple/trytond/: [Errno -2] Name or service not known -- Some packages may not be found! [ 39s] Couldn't find index page for 'trytond' (maybe misspelled?) [ 39s] Scanning index of all packages (this may take a while) [ 39s] Reading https://pypi.python.org/simple/ [ 39s] Download error on https://pypi.python.org/simple/: [Errno -2] Name or service not known -- Some packages may not be found! [ 39s] No local packages or download links found for trytond>=3.8,<3.9 [ 39s] error: Could not find suitable distribution for Requirement.parse('trytond>=3.8,<3.9') [ 39s] error: Bad exit status from /var/tmp/rpm-tmp.IMguh4 (%check) [ 39s] [ 39s] [ 39s] RPM build errors: [ 39s] Bad exit status from /var/tmp/rpm-tmp.IMguh4 (%check)
The idea to add trytond as build requirement did not help either, as this produces dome other funny error messages (about some missing mysql-stuff - which I see first time now)
Is there a way to tell the test to *not* download from pypi, but to use local resources instead?
Thanks Axel Link to your package ? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org