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 console_scripts file name conflict #7

Open
hrudham opened this issue Jul 9, 2020 · 0 comments
Open

Python3 console_scripts file name conflict #7

hrudham opened this issue Jul 9, 2020 · 0 comments

Comments

@hrudham
Copy link

hrudham commented Jul 9, 2020

If wheel2deb is used to build a Debian package for a project that has a console_scripts entry point, you may find yourself in a position where you cannot install a package.

For example, the pyjwt package has two existing (official) Debian packages provided: python-jwt, which installs the python2 version, and python3-jwt for the python3 version. Both of these Debian packages create a file in the /usr/bin directory. In the case of python-jwt, this is /usr/bin/pyjwt, and in the case python3-jwt, this is /usr/bin/pyjwt3.

However, when building these packages via wheel2deb, both of them end up creating /usr/bin/pyjwt. This causes problems specifically with the python3 version if the official (or wheel2deb generated) python2 version is already installed:

Unpacking python3-pyjwt (1.7.0-1~w2d0) ...
dpkg: error processing archive python3-pyjwt_1.7.0-1~w2d0_all.deb (--install):
 trying to overwrite '/usr/bin/pyjwt', which is also in package python-jwt 1.7.0-2
hrudham pushed a commit to hrudham/wheel2deb that referenced this issue Jul 9, 2020
hrudham pushed a commit to hrudham/wheel2deb that referenced this issue Jul 9, 2020
hrudham added a commit to hrudham/wheel2deb that referenced this issue Jul 10, 2020
hrudham pushed a commit to hrudham/wheel2deb that referenced this issue Jul 10, 2020
hrudham pushed a commit to hrudham/wheel2deb that referenced this issue Jul 10, 2020
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