mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Recent changes for building standalone dvc binary on Linux made it possible to do the same thing on Windows. So now we are getting rid of WinPython and instead building standalone dvc binary using PyInstall and packaing it into an installer with InnoSetup. One of the benefits is dramatically decreased installer size. From 125M we got to only 13M! Signed-off-by: Ruslan Kuprieiev <[email protected]>
15 lines
351 B
Python
15 lines
351 B
Python
# This script generates config.ini for setup.iss script
|
|
from dvc.main import VERSION
|
|
|
|
try:
|
|
import configparser as ConfigParser
|
|
except ImportError:
|
|
import ConfigParser
|
|
|
|
config = ConfigParser.ConfigParser()
|
|
config.add_section('Version')
|
|
config.set('Version', 'Version', VERSION)
|
|
|
|
with open('innosetup/config.ini', 'w') as f:
|
|
config.write(f)
|