-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix stdeb for python 3 #648
Conversation
There is still a problem, we cannot require |
The cleanest solution (in my opinion) would be to create a pypi package |
Okay, I found another way, as |
c9885c2
to
5b63124
Compare
Sorry for the spam, now everything works with pip and with stdeb. Yay! |
This comment has been minimized.
This comment has been minimized.
As you found out, the build failure for |
Looks sane to me; thanks for the thorough effort at testing this! |
I just added the changelog. Maybe you'll manage to take a look at it in the next few days. |
fdeb0f1
to
09f450a
Compare
40fe04a
to
e20e903
Compare
stdeb.cfg
Outdated
Conflicts3: python-catkin-tools | ||
Suite: xenial yakkety zesty artful bionic cosmic disco eoan focal stretch buster | ||
Suite3: xenial yakkety zesty artful bionic cosmic disco eoan focal stretch buster |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this line change is necessary. The separate Suite3 config field is only needed when the release suites differ between Python 2 and Python 3.
I'm pretty certain that stdeb defaults to unstable
if no suites are configured although I haven't confirmed that. Leaving this line as it was while adding the No-Python2
field below should be sufficient to halt all further python2 releases of this package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you seem to be right. Thank you, I changed it back.
Signed-off-by: William Woodall <[email protected]>
This is my attempt to fix #594. The following changes are done:
> 0.2.9
can be dropped because catkin-pkg-modules was introduced with 0.3.0)Depends
andConflicts
(i. e., the python 2 settings) were removed fromstdeb.cfg
because no further python 2 packages will be built.python3-osrf-pycommon
was added as a deb dependency (I don't know why it was missing)I tested the changes on five different systems:
Once all build dependencies were installed, I used the command
python3 setup.py --command-packages=stdeb.command sdist_dsc --with-python2=False bdist_deb
to create the deb file. It could be installed on all systems and catkin commands could be executed without error.The mentioned systems cover all the systems in
Suite
, assuming that the non-LTS Ubuntu releases behave like either the predecessor or the successor.Before the release with these changes, the trivial fix in osrf/osrf_pycommon#71 should be merged. Currently,
python3-osrf-pycommon
andpython-osrf-pycommon
don't conflict in all cases, resulting in annoying apt errors on installingpython3-osrf-pycommon
whenpython-osrf-pycommon
was already installed.Before the release, the version in
setup.py
an the changelog should obviously be updated.