Re: dh_python3 inocrrect dependancy

2014-07-05 Thread Tristan Seligmann
On 5 July 2014 02:44, Brian May br...@microcomaustralia.com.au wrote:
 I assumed it wasn't valid to have a line with only one value in that file.
 Then again, not sure where this file is documented. Would have thought maybe
 the dh_python2 man page, it isn't there.

From the dh_python2 man page:

   dependencies
   dh_python2 tries to translate Python dependencies from
requires.txt file to Debian dependencies. Use debian/pydist-overrides
or --no-guessing-deps option to override it if the guess is incorrect.
If you want dh_python2  to generate more strict dependencies (f.e. to
avoid ABI problems) create debian/python-foo.pydist file. See
/usr/share/doc/python-doc/README.PyDist (provided by python-doc
package) for more information. If the pydist file contains PEP386 flag
or set of (uscan like) rules, dh_python2 will make the depedency
versioned (version requirements are ignored by default).

From the dh_python3 man page:

   dependencies
   dh_python3  tries  to translate Python dependencies from
requires.txt file to Debian dependencies. Use debian/py3dist-overrides
or --no-guessing-deps option to override it if the guess is incorrect.
If you want dh_python3 to
   generate more strict dependencies (f.e. to avoid ABI problems)
create debian/python3-foo.pydist file. See
/usr/share/doc/dh-python/README.PyDist for more information. If the
pydist file contains PEP386 flag or set of  (uscan
   like) rules, dh_python3 will make the depedency versioned
(version requirements are ignored by default).

Both copies of README.PyDist (in python-doc and dh-python) seem to
exist and be almost identical (main difference is that the dh-python
version has a few extra words about Python 3 / dh_python3 related
things which the python-doc version doesn't have).
-- 
mithrandi, i Ainil en-Balandor, a faer Ambar


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/camckhmqnkm3n+b5hn5v9k2ttx5ifmrmh4nd5o+1ab_0pjis...@mail.gmail.com



Re: dh_python3 inocrrect dependancy

2014-07-04 Thread Thomas Goirand
On 07/03/2014 01:35 PM, Brian May wrote:
 When trying to package python3-pipeline (see
 http://bugs.debian.org/753556), I encountered a problem with the python3
 dependencies:
 
 dh_python3 -O--buildsystem=pybuild
 I: dh_python3 pydist:181: Cannot find installed package that provides
 futures. Using python3-futures as package name. Please add futures
 correct_package_name line to debian/py3dist-overrides to override it IF
 this is incorrect.
 
 That is incorrect, I think it is looking for python-concurrent.futures,
 which I believe is now included in Python 3. So ideally, the dependency
 should be dropped, it isn't needed.
 
 What is the correct solution here? Maybe something like:
 
 echo futures python3  debian/py3dist-overrides
 
 Thought I should check here before going ahead and doing the wrong thing :-)

IMO, just:

echo futures  debian/py3dist-overrides

will do... :)

Thomas


-- 
To UNSUBSCRIBE, email to debian-python-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53b6ddde.7020...@debian.org



Re: dh_python3 inocrrect dependancy

2014-07-04 Thread Brian May
On 5 July 2014 03:01, Thomas Goirand z...@debian.org wrote:

 IMO, just:

 echo futures  debian/py3dist-overrides

 will do... :)


Really? That simple? :-)

I assumed it wasn't valid to have a line with only one value in that file.
Then again, not sure where this file is documented. Would have thought
maybe the dh_python2 man page, it isn't there.
-- 
Brian May br...@microcomaustralia.com.au


dh_python3 inocrrect dependancy

2014-07-02 Thread Brian May
When trying to package python3-pipeline (see http://bugs.debian.org/753556),
I encountered a problem with the python3 dependencies:

dh_python3 -O--buildsystem=pybuild
I: dh_python3 pydist:181: Cannot find installed package that provides
futures. Using python3-futures as package name. Please add futures
correct_package_name line to debian/py3dist-overrides to override it IF
this is incorrect.

That is incorrect, I think it is looking for python-concurrent.futures,
which I believe is now included in Python 3. So ideally, the dependency
should be dropped, it isn't needed.

What is the correct solution here? Maybe something like:

echo futures python3  debian/py3dist-overrides

Thought I should check here before going ahead and doing the wrong thing :-)

Thanks=
-- 
Brian May br...@microcomaustralia.com.au