remove debugging code and fix all have_cython calls

This commit is contained in:
Antoine Beaupré 2015-10-08 17:20:52 -04:00
parent 80e53fb66d
commit 1c61f87da3
3 changed files with 2 additions and 5 deletions

View File

@ -15,7 +15,7 @@ from .helpers import Error, get_cache_dir, decode_dict, st_mtime_ns, unhexlify,
from .locking import UpgradableLock
from .hashindex import ChunkIndex
if have_cython:
if have_cython():
import msgpack

View File

@ -10,7 +10,7 @@ from .archive import Archive
from .helpers import daemonize, have_cython
from .remote import cache_if_remote
if have_cython:
if have_cython():
import msgpack
# Does this version of llfuse support ns precision?

View File

@ -140,9 +140,6 @@ class build_usage(Command):
# allows us to build docs without the C modules fully loaded during help generation
if 'BORG_CYTHON_DISABLE' not in os.environ:
os.environ['BORG_CYTHON_DISABLE'] = self.__class__.__name__
from borg.helpers import have_cython
print('have_cython? %s' % have_cython())
print("CYTHON ENV: %s" % os.environ.get('BORG_CYTHON_DISABLE'))
from borg.archiver import Archiver
parser = Archiver().build_parser(prog='borg')
choices = {}