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

update to allow python3 package to override py2 and vice-versa #13

Merged
merged 3 commits into from
Sep 2, 2019

Conversation

dannymeloy
Copy link
Contributor

Hoping that this will allow both packages to over-ride each other, so python2 and 3 packages that depend on the reverse proxy can be installed without a clash. Added a python2 explicit call in the service file for the python 2 package to override the shebang statement in the binary (which has been changed to python3)

@@ -1,2 +0,0 @@
nmosreverseproxy* usr/lib/python2.7/dist-packages
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this file not still required, or are the relevant files moved into place by the Python packaging?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That file is the entire python package I think, which is handled by py2dsc.

@@ -4,9 +4,9 @@ Wants=network-online.target
After=network.target network-online.target

[Service]
ExecStart=/usr/bin/proxylisting
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get an issue when starting the py2 service which may be related to this:

Failed to start ips-reverseproxy-common.service: Unit ips-reverseproxy-common.service is not loaded properly: Invalid argument.
See system logs and 'systemctl status ips-reverseproxy-common.service' for details.
ips-reverseproxy-common.service couldn't start.
$ systemctl status ips-reverseproxy-common.service
● ips-reverseproxy-common.service - ips-reverseproxy-common
   Loaded: error (Reason: Invalid argument)
   Active: inactive (dead) since Fri 2019-08-30 09:15:56 BST; 21s ago
 Main PID: 1843 (code=killed, signal=TERM)

@andrewbonney
Copy link
Contributor

That seems to do the job. Could you just add a version bump? I'd suggest at least minor rather than patch.

@dannymeloy dannymeloy merged commit 1c5290f into master Sep 2, 2019
@dannymeloy dannymeloy deleted the dannym-python3 branch September 2, 2019 10:11
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

Successfully merging this pull request may close these issues.

2 participants