Generate version.py if it does not exist

remotes/origin/build/support-pip-from-git
Darko Poljak 5 years ago
parent 778cd4ff0e
commit fc28f58c77
  1. 9
      setup.py

@ -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):

Loading…
Cancel
Save