Skip to content

Commit d8c8834

Browse files
committed
update setup.py
1 parent 5be66db commit d8c8834

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Package your python code (with requirements) into a standalone zip file (like a
99

1010
`.pyz` to **Python** is like `.jar` to **Java**. They are both zip archive files which aggregate many packages and associated metadata and resources (text, images, etc.) into one file for distribution. Then what you only need is a Python Interpreter as the runtime environment.
1111

12-
PS: The **pyz** ext could be any other suffixes even without ext names, so you can rename `app.pyz` to `app.zip` or `app.py` or others as you wish. Depends on [PEP441](https://www.python.org/dev/peps/pep-0441/) & [zipimport](https://docs.python.org/3/library/zipimport.html), the apps may be `cross-platform` as long as written with pure python code without any C++ building processes.
12+
PS: The **pyz** ext could be any other suffixes even without ext names, so you can rename `app.pyz` to `app.zip` or `app.py` or others as you wish. Depends on [PEP441](https://www.python.org/dev/peps/pep-0441/)([zipapp](https://docs.python.org/3/library/zipapp.html)) & [zipimport](https://docs.python.org/3/library/zipimport.html), the apps may be `cross-platform` as long as written with pure python code without any C++ building processes.
1313

1414
# When to Use it?
1515
1. Package your code(package or model) into one zipped file.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
long_description = f.read()
1717

1818
here = os.path.abspath(os.path.dirname(__file__))
19-
with codecs.open(os.path.join(here, 'zipapps', '__init__.py'),
19+
with codecs.open(os.path.join(here, 'zipapps', 'main.py'),
2020
encoding="u8") as f:
2121
version = re.search(r'''__version__ = ['"](.*?)['"]''', f.read()).group(1)
2222
desc = "Package your python code into one zip file, even a virtual environment."

0 commit comments

Comments
 (0)