Issue removed auto-generation of niftynet/info.py module
from setuptools import setup, find_packages
from packaging import version
import re
-import os
from niftynet.utilities.versioning import get_niftynet_git_version
version_buf, version_git, command_git = get_niftynet_git_version()
-# Create a niftynet/info.py module that will keep the
-# version descriptor returned by Git
-info_module = open(os.path.join('niftynet', 'info.py'), 'w')
-info_module.write('# -*- coding: utf-8 -*-\n')
-info_module.write('"""NiftyNet version tracker.\n')
-info_module.write('\n')
-info_module.write('This module only holds the NiftyNet version,')
-info_module.write(' generated using the \n')
-info_module.write('``{}`` command.\n'.format(' '.join(command_git)))
-info_module.write('\n')
-info_module.write('"""\n')
-info_module.write('\n')
-info_module.write('\n')
-info_module.write('VERSION_DESCRIPTOR = "{}"\n'.format(version_buf))
-info_module.close()
-
# Regex for checking PEP 440 conformity
# https://www.python.org/dev/peps/pep-0440/#id79
pep440_regex = re.compile(
