File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,9 @@ class CryptographyRecipe(CompiledComponentsPythonRecipe):
11
11
def get_recipe_env (self , arch ):
12
12
env = super (CryptographyRecipe , self ).get_recipe_env (arch )
13
13
openssl_dir = self .get_recipe ('openssl' , self .ctx ).get_build_dir (arch .arch )
14
- env ['PYTHON_ROOT' ] = self .ctx .get_python_install_dir ()
15
- env ['CFLAGS' ] += ' -I' + env ['PYTHON_ROOT' ] + '/include/python2.7' + \
16
- ' -I' + join (openssl_dir , 'include' )
17
14
# Set linker to use the correct gcc
18
15
env ['LDSHARED' ] = env ['CC' ] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
19
- env ['LDFLAGS' ] += ' -L' + env ['PYTHON_ROOT' ] + '/lib' + \
20
- ' -L' + openssl_dir + \
21
- ' -lpython2.7' + \
16
+ env ['LDFLAGS' ] += ' -L' + openssl_dir + \
22
17
' -lssl -lcrypto'
23
18
return env
24
19
Original file line number Diff line number Diff line change @@ -29,10 +29,8 @@ def build_arch(self, arch):
29
29
def get_recipe_env (self , arch ):
30
30
env = super (M2CryptoRecipe , self ).get_recipe_env (arch )
31
31
env ['OPENSSL_BUILD_PATH' ] = self .get_recipe ('openssl' , self .ctx ).get_build_dir (arch .arch )
32
- env ['CFLAGS' ] += ' -I' + join (self .ctx .get_python_install_dir (), 'include/python2.7' )
33
32
# Set linker to use the correct gcc
34
33
env ['LDSHARED' ] = env ['CC' ] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
35
- env ['LDFLAGS' ] += ' -lpython2.7'
36
34
return env
37
35
38
36
recipe = M2CryptoRecipe ()
Original file line number Diff line number Diff line change @@ -24,12 +24,9 @@ def get_recipe_env(self, arch):
24
24
env = super (PyLevelDBRecipe , self ).get_recipe_env (arch )
25
25
# Copy environment from leveldb recipe
26
26
env .update (self .get_recipe ('leveldb' , self .ctx ).get_recipe_env (arch ))
27
- env ['PYTHON_ROOT' ] = self .ctx .get_python_install_dir ()
28
- env ['CFLAGS' ] += ' -I' + env ['PYTHON_ROOT' ] + '/include/python2.7'
29
27
# Set linker to use the correct gcc
30
28
env ['LDSHARED' ] = env ['CC' ] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
31
- env ['LDFLAGS' ] += ' -lpython2.7' + \
32
- ' -lleveldb'
29
+ env ['LDFLAGS' ] += ' -lleveldb'
33
30
return env
34
31
35
32
recipe = PyLevelDBRecipe ()
You can’t perform that action at this time.
0 commit comments