mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-30 19:21:17 +00:00
re-enable cython as late as possible
This commit is contained in:
parent
a1dad8c9da
commit
d6109b676c
1 changed files with 3 additions and 3 deletions
6
setup.py
6
setup.py
|
@ -142,9 +142,6 @@ def run(self):
|
|||
os.environ['BORG_CYTHON_DISABLE'] = self.__class__.__name__
|
||||
from borg.archiver import Archiver
|
||||
parser = Archiver().build_parser(prog='borg')
|
||||
# return to regular Cython configuration, if we changed it
|
||||
if os.environ.get('BORG_CYTHON_DISABLE') == self.__class__.__name__:
|
||||
del os.environ['BORG_CYTHON_DISABLE']
|
||||
choices = {}
|
||||
for action in parser._actions:
|
||||
if action.choices is not None:
|
||||
|
@ -166,6 +163,9 @@ def run(self):
|
|||
doc.write(re.sub("^", " ", parser.format_help(), flags=re.M))
|
||||
doc.write("\nDescription\n~~~~~~~~~~~\n")
|
||||
doc.write(epilog)
|
||||
# return to regular Cython configuration, if we changed it
|
||||
if os.environ.get('BORG_CYTHON_DISABLE') == self.__class__.__name__:
|
||||
del os.environ['BORG_CYTHON_DISABLE']
|
||||
|
||||
|
||||
class build_api(Command):
|
||||
|
|
Loading…
Reference in a new issue