aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2021-10-05 23:30:14 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2021-10-05 23:30:14 -0400
commit8b421b927aefe1cc21d54db8c6abfba6bd754096 (patch)
tree12c3db412bf13c53ef576f6053681575f66fb36a /setup.py
parent17e8877df22d5a965d3c92ce640b089e88d82d2b (diff)
parent34ba2951b8c523713425c98addb9256ea05c946f (diff)
Update upstream source from tag 'upstream/1.19.0'
Update to upstream version '1.19.0' with Debian dir bc64f5039c209cd32cdb1030e3058fdb88976bac
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py45
1 files changed, 42 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index ab708d8..1a5c315 100644
--- a/setup.py
+++ b/setup.py
@@ -40,13 +40,51 @@ FILES = [
]
]
+DESCRIPTION = ("Command-line program to download image galleries and "
+ "collections from several image hosting sites")
+LONG_DESCRIPTION = read("README.rst")
+
+
+if "py2exe" in sys.argv:
+ try:
+ import py2exe
+ except ImportError:
+ sys.exit("Error importing 'py2exe'")
+
+ # py2exe dislikes version specifiers with a trailing '-dev'
+ VERSION = VERSION.partition("-")[0]
+
+ params = {
+ "console": [{
+ "script" : "./gallery_dl/__main__.py",
+ "dest_base" : "gallery-dl",
+ "version" : VERSION,
+ "description" : DESCRIPTION,
+ "comments" : LONG_DESCRIPTION,
+ "product_name" : "gallery-dl",
+ "product_version": VERSION,
+ }],
+ "options": {"py2exe": {
+ "bundle_files": 0,
+ "compressed" : 1,
+ "optimize" : 1,
+ "dist_dir" : ".",
+ "packages" : ["gallery_dl"],
+ "includes" : ["youtube_dl"],
+ "dll_excludes": ["w9xpopen.exe"],
+ }},
+ "zipfile": None,
+ }
+
+else:
+ params = {}
+
setup(
name="gallery_dl",
version=VERSION,
- description=("Command-line program to download image galleries and "
- "collections from several image hosting sites"),
- long_description=read("README.rst"),
+ description=DESCRIPTION,
+ long_description=LONG_DESCRIPTION,
url="https://github.com/mikf/gallery-dl",
download_url="https://github.com/mikf/gallery-dl/releases/latest",
author="Mike Fährmann",
@@ -96,4 +134,5 @@ setup(
"Topic :: Utilities",
],
test_suite="test",
+ **params,
)