summaryrefslogtreecommitdiff
path: root/packages/python/python-m2crypto/install.patch
blob: 6c70ccf516a0b1b73353616b6a501765d2178deb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Index: m2crypto-0.18.2/setup.py
===================================================================
--- m2crypto-0.18.2.orig/setup.py
+++ m2crypto-0.18.2/setup.py
@@ -38,7 +38,7 @@ class _M2CryptoBuildExt(build_ext.build_
             self.openssl = 'c:\\pkg'
         else:
             self.libraries = ['ssl', 'crypto']
-            self.openssl = '/usr'
+            self.openssl = os.environ.get( "STAGING_DIR" )
        
     
     def finalize_options(self):
@@ -47,8 +47,8 @@ class _M2CryptoBuildExt(build_ext.build_
 
         build_ext.build_ext.finalize_options(self)
 
-        opensslIncludeDir = os.path.join(self.openssl, 'include')
-        opensslLibraryDir = os.path.join(self.openssl, 'lib')
+        opensslIncludeDir = os.environ.get( "STAGING_INCDIR" )
+        opensslLibraryDir = os.environ.get( "STAGING_LIBDIR" )
         
         self.swig_opts = ['-I%s' % i for i in self.include_dirs + \
                           [opensslIncludeDir]]