Files
dvc/innosetup/config_gen.py
T
Ruslan Kuprieiev 5b810fed99 build: create standalone binary with WinPython
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]>
2017-06-02 12:53:25 -07:00

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)