Browse Source

remove debugging code and fix all have_cython calls

Antoine Beaupré 9 years ago
parent
commit
1c61f87da3
3 changed files with 2 additions and 5 deletions
  1. 1 1
      borg/cache.py
  2. 1 1
      borg/fuse.py
  3. 0 3
      setup.py

+ 1 - 1
borg/cache.py

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

+ 1 - 1
borg/fuse.py

@@ -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?

+ 0 - 3
setup.py

@@ -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 = {}