mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-12-01 23:11:35 +01:00
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:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user