-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
36 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,22 +5,7 @@ | |
import os | ||
import sys | ||
from shutil import rmtree | ||
|
||
setuptools_available = True | ||
try: | ||
# need setuptools to build wheel | ||
from setuptools import setup, Command, find_packages | ||
|
||
except ImportError: | ||
# works in a pinch | ||
setuptools_available = False | ||
from distutils.core import setup, Command | ||
|
||
from distutils.spawn import spawn | ||
|
||
if "bdist_wheel" in sys.argv and not setuptools_available: | ||
print("cannot build wheel without setuptools") | ||
sys.exit(1) | ||
from setuptools import setup, Command, find_packages | ||
|
||
|
||
NAME = "copyparty" | ||
|
@@ -100,9 +85,8 @@ def run(self): | |
"author_email": "[email protected]", | ||
"url": "https://github.com/9001/copyparty", | ||
"license": "MIT", | ||
"data_files": data_files, | ||
"classifiers": [ | ||
"Development Status :: 3 - Alpha", | ||
"Development Status :: 4 - Beta", | ||
"License :: OSI Approved :: MIT License", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 2", | ||
|
@@ -120,35 +104,16 @@ def run(self): | |
"Environment :: Console", | ||
"Environment :: No Input/Output (Daemon)", | ||
"Topic :: Communications :: File Sharing", | ||
"Topic :: Internet :: WWW/HTTP :: HTTP Servers", | ||
], | ||
"include_package_data": True, | ||
"data_files": data_files, | ||
"packages": find_packages(), | ||
"install_requires": ["jinja2"], | ||
"extras_require": {"thumbnails": ["Pillow"], "audiotags": ["mutagen"]}, | ||
"entry_points": {"console_scripts": ["copyparty = copyparty.__main__:main"]}, | ||
"scripts": ["bin/copyparty-fuse.py"], | ||
"cmdclass": {"clean2": clean2}, | ||
} | ||
|
||
|
||
if setuptools_available: | ||
args.update( | ||
{ | ||
"packages": find_packages(), | ||
"install_requires": ["jinja2"], | ||
"extras_require": {"thumbnails": ["Pillow"]}, | ||
"include_package_data": True, | ||
"entry_points": { | ||
"console_scripts": ["copyparty = copyparty.__main__:main"] | ||
}, | ||
"scripts": ["bin/copyparty-fuse.py"], | ||
} | ||
) | ||
else: | ||
args.update( | ||
{ | ||
"packages": ["copyparty", "copyparty.stolen"], | ||
"scripts": ["bin/copyparty-fuse.py"], | ||
} | ||
) | ||
|
||
|
||
# import pprint | ||
# pprint.PrettyPrinter().pprint(args) | ||
# sys.exit(0) | ||
|
||
setup(**args) |