]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-rest-api: drop autotools detection 11229/head
authorSage Weil <sage@redhat.com>
Mon, 26 Sep 2016 19:33:31 +0000 (15:33 -0400)
committerSage Weil <sage@redhat.com>
Mon, 26 Sep 2016 19:50:30 +0000 (15:50 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
src/ceph-rest-api

index 772b3d20fcd64d56ebc7290fe1c5af3e366f6810..1405ab5bbae50e452e6dc9733fdb746404ce32e7 100755 (executable)
@@ -12,22 +12,6 @@ MYPATH = os.path.abspath(__file__)
 MYDIR = os.path.dirname(MYPATH)
 DEVMODEMSG = '*** DEVELOPER MODE: setting PYTHONPATH and LD_LIBRARY_PATH'
 
-if MYDIR.endswith('src') and \
-   os.path.exists(os.path.join(MYDIR, '.libs')) and \
-   os.path.exists(os.path.join(MYDIR, 'pybind')):
-    MYLIBPATH = os.path.join(MYDIR, '.libs')
-    if 'LD_LIBRARY_PATH' in os.environ:
-        if MYLIBPATH not in os.environ['LD_LIBRARY_PATH']:
-            os.environ['LD_LIBRARY_PATH'] += ':' + MYLIBPATH
-            print >> sys.stderr, DEVMODEMSG
-            os.execvp('python', ['python'] + sys.argv)
-    else:
-        os.environ['LD_LIBRARY_PATH'] = MYLIBPATH
-        print >> sys.stderr, DEVMODEMSG
-        os.execvp('python', ['python'] + sys.argv)
-    sys.path.insert(0, os.path.join(MYDIR, 'pybind'))
-
-
 def parse_args():
     parser = argparse.ArgumentParser(description="Ceph REST API webapp")
     parser.add_argument('-c', '--conf', help='Ceph configuration file')