dvc: automatically create scripts, v2

Moving dvc.py contents to dvc/main.py and making
dvc.py to be just a wrapper for calling dvc/main.py.
This will allow us to both keep changes minimal and
use automatic script building.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2017-05-02 15:33:18 +03:00
parent 71ede45475
commit 586c7f7e57
4 changed files with 98 additions and 100 deletions
+4 -10
View File
@@ -91,16 +91,9 @@ install_requires = [
'wcwidth==0.1.7',
]
s = platform.system()
if s == 'Windows':
scripts = ['bin/dvc.bat']
elif s == 'Darwin':
if platform.system() == 'Darwin':
install_requires.append('appnope==0.1.0')
install_requires.append('py2app==0.12')
elif s == 'Linux':
scripts = ['bin/dvc']
else:
raise DistutilsPlatformError("Unsupported platform")
setup(
name='dvc',
@@ -118,7 +111,8 @@ setup(
],
packages=find_packages(exclude=['bin', 'tests', 'functests']),
include_package_data=True,
data_files=[('', ['dvc.py'])],
scripts=scripts,
entry_points={
'console_scripts': ['dvc = dvc.main:main']
},
zip_safe=False
)