blob: 8c89fdc14df6bf2d2f6f9254e4757dc76afe8395 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- setup.py.orig Sat Aug 14 01:44:47 2004
+++ setup.py Fri Oct 1 21:21:45 2004
@@ -116,13 +116,14 @@
build_ext.build_extensions(self)
def detect_modules (self):
- lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib']
- inc_dirs = self.compiler.include_dirs + ['/usr/include']
+ lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib', '%%LOCALBASE%%/lib']
+ inc_dirs = self.compiler.include_dirs + ['/usr/include', '%%LOCALBASE%%/include']
exts = []
if (self.compiler.find_library_file(lib_dirs, 'gmp')):
exts.append(Extension("Crypto.PublicKey._fastmath",
- include_dirs=['src/'],
+ include_dirs=['src/', '%%LOCALBASE%%/include'],
libraries=['gmp'],
+ library_dirs=['%%LOCALBASE%%/lib'],
sources=["src/_fastmath.c"]))
self.extensions += exts
|