Generate version.py if it does not exist

This commit is contained in:
Darko Poljak 2019-10-17 20:48:52 +02:00
parent 778cd4ff0e
commit fc28f58c77

View file

@ -1,7 +1,14 @@
from distutils.core import setup from distutils.core import setup
import cdist
import os import os
import re import re
import subprocess
if not os.path.exists(os.path.join('cdist', 'version.py')):
subprocess.run([os.path.join('bin', 'build-helper'), 'version', ])
import cdist
def data_finder(data_dir): def data_finder(data_dir):