Skip to content
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

Python3 build installs python2 scripts #1891

Closed
totaam opened this issue Jun 30, 2018 · 5 comments
Closed

Python3 build installs python2 scripts #1891

totaam opened this issue Jun 30, 2018 · 5 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Jun 30, 2018

Issue migrated from trac ticket # 1891

component: packaging | priority: major | resolution: invalid

2018-06-30 04:28:08: aelmahmoudy created the issue


Pyyhon3 build installs the following python2 scripts:

usr/lib/cups/backend/xpraforwarder
usr/lib/xpra/auth_dialog
usr/lib/xpra/xdg-open
@totaam
Copy link
Collaborator Author

totaam commented Jun 30, 2018

2018-06-30 07:25:18: antoine changed status from new to closed

@totaam
Copy link
Collaborator Author

totaam commented Jun 30, 2018

2018-06-30 07:25:18: antoine set resolution to invalid

@totaam
Copy link
Collaborator Author

totaam commented Jun 30, 2018

2018-06-30 07:25:18: antoine edited the issue description

@totaam
Copy link
Collaborator Author

totaam commented Jun 30, 2018

2018-06-30 07:25:18: antoine commented


That is incorrect. This change must come from your build or packaging system:

$ sudo python3 ./setup.py install --prefix=/usr
(..)
$ sudo head -n 1 /usr/lib/cups/backend/xpraforwarder 
#!/usr/bin/env python

Notes:

  • r19776 fixes the python3 compatibility for xpraforwarder
  • xdg-open and xpraforwarder will just end up exec-ing xpra, so they do not rely on any xpra modules directly - they should be able to run with both python2 or python3
  • xdg-open and xpraforwarder could be re-written in plain shell relatively easily
  • auth_dialog imports some xpra modules for its dialog (mostly the utility module that makes it GTK2 / GTK3 and python2 / python3 version agnostic), so it requires that the corresponding xpra modules are installed for the python version used to run it

@totaam totaam closed this as completed Jun 30, 2018
@totaam
Copy link
Collaborator Author

totaam commented Jul 2, 2018

2018-07-02 13:04:54: antoine commented


@aelmahmoudy: see #1568#comment:21

@totaam totaam added the v2.3.x label Jan 22, 2021
@totaam totaam mentioned this issue Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant