Skip to content

InCompatible with PyOxidizer #1002

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

Closed
Baneeishaque opened this issue Apr 6, 2020 · 1 comment
Closed

InCompatible with PyOxidizer #1002

Baneeishaque opened this issue Apr 6, 2020 · 1 comment

Comments

@Baneeishaque
Copy link

See PyOxidizer Issue 69 : Stop requiring __file__ in Python packages

I am trying to use git-repo-updater with PyOxidizer.

    Finished dev [unoptimized + debuginfo] target(s) in 1m 29s
writing executable to C:\Lab\PyOxidizer\git-repo-updator\.\build\x86_64-pc-windows-msvc\debug\exe\git-repo-updator.exe
>>> from gitup.cli import run
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "gitup.cli", line 18, in <module>
  File "gitup.update", line 15, in <module>
  File "git", line 33, in <module>
  File "git", line 22, in _init_externals
NameError: name '__file__' is not defined
>>>

git-repo-updater uses GitPython package : git-repo-updater setup.py, git-repo-updater source file

@Byron
Copy link
Member

Byron commented Apr 11, 2020

Oh neat, PyOxidizer is a Rust program!

Looking at the documentation, I believe it's possible to detect this case and avoid trying to use file.

An update should be released in the next days.

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

No branches or pull requests

2 participants