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

Port to python3 #26

Merged
merged 3 commits into from Dec 10, 2019
Merged

Port to python3 #26

merged 3 commits into from Dec 10, 2019

Conversation

gregoa
Copy link
Contributor

@gregoa gregoa commented Oct 30, 2019

In Debian we are currently applying the following patch to
Text-Markup.
We thought you might be interested in it too.

Description: Port to python3
Origin: vendor
Bug-Debian: https://bugs.debian.org/943159
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2019-10-30

The patch is tracked in our Git repository at
https://salsa.debian.org/perl-team/modules/packages/libtext-markup-perl/raw/master/debian/patches/python3.patch

Thanks for considering,
gregor herrmann,
Debian Perl Group

@theory
Copy link
Owner

theory commented Nov 20, 2019

Is the binary reliably called python3 on most platforms? (Sorry, not a Python person.)

@gregoa
Copy link
Contributor Author

gregoa commented Nov 20, 2019 via email

Copy link
Owner

@theory theory left a comment

Choose a reason for hiding this comment

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

Looks good to me with a couple of minor tweaks.

@@ -13,7 +13,7 @@ our $VERSION = '0.24';

# Find Python (process stolen from App::Info).
my ($PYTHON, $RST2HTML);
for my $exe (WIN32 ? 'python.exe' : 'python') {
for my $exe (WIN32 ? 'python.exe' : 'python3') {
Copy link
Owner

Choose a reason for hiding this comment

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

Looks like maybe it should be python3.exe on Windows, too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ack, changed in our branch.

@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
Copy link
Owner

Choose a reason for hiding this comment

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

Why not #!/usr/bin/env python3?

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 might be a Debianism: We want to make sure that the binary from our system package is used (same for perl, btw). But this might not be universal, so I pushed a commit which changes the hashbang back.

In Debian we want to make sure that the binary from the system package is
used, in other enviroments this might be different.
Copy link
Owner

@theory theory left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

@theory theory merged commit 2485dab into theory:master Dec 10, 2019
@gregoa
Copy link
Contributor Author

gregoa commented Dec 10, 2019 via email

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.

None yet

2 participants