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

Fixing python version in shebangs #121

Closed
psaiz opened this issue Dec 16, 2021 · 7 comments
Closed

Fixing python version in shebangs #121

psaiz opened this issue Dec 16, 2021 · 7 comments
Assignees
Labels

Comments

@psaiz
Copy link

psaiz commented Dec 16, 2021

Hi,

The module deploys two python files with a shebang pointing to python (instead of python3). This creates some issues to create rpms. Would it be possible to change the shebangs to use python3 ?

Best regards,
pablo

*** ERROR: ambiguous python shebang in ./node_modules/re2/vendor/re2/make_unicode_casefold.py: #!/usr/bin/python. Change it to python3 (or python2) explicitly.
*** ERROR: ambiguous python shebang in ./node_modules/re2/vendor/re2/make_unicode_groups.py: #!/usr/bin/python. Change it to python3 (or python2) explicitly.
@uhop uhop self-assigned this Dec 21, 2021
@uhop uhop added the question label Dec 21, 2021
@uhop
Copy link
Owner

uhop commented Dec 21, 2021

vendor is a changing reference to the git repository google/re2, which contains C++ and some other code. It is not part of node-re2 codebase, but a separate project we do not control. I suggest proposing the suggested change there.

node-re2 uses some C++ files from google/re2 project to compile a binary extension. No python files, or any other files, are used for that.

@psaiz
Copy link
Author

psaiz commented Jan 12, 2022

Hi Eugene,
Thanks for looking into this. I've created the issue there, and they are looking into it. If it gets accepted, would it be possible to have a new version of node-re2 with those changes?

Thanks again

@uhop
Copy link
Owner

uhop commented Jan 12, 2022

If it gets accepted, would it be possible to have a new version of node-re2 with those changes?

Of course. Please let me know, and I will issue a new technical release.

@psaiz
Copy link
Author

psaiz commented Jan 18, 2022

Hi Eugene.
Here I come again :-)
The patch to google/re has been accepted. Would it be possible to get a new version of your module?

@uhop
Copy link
Owner

uhop commented Jan 18, 2022

node-re2 uses tagged releases of google/re2. IIRC, they usually release (tag) once a month on the 1st. The latest release was 2021-11-1, which is used by node-re2 at this moment.

So as soon as they cut a release, I'll update and republish this project.

@psaiz
Copy link
Author

psaiz commented Feb 22, 2022

Hi @uhop, there was indeed a new version of google/re2 on the 1st of the month. Would you mind creating a new one of yours?
Thanks again,

@uhop
Copy link
Owner

uhop commented Feb 22, 2022

Published today as 1.17.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants