File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
pythonforandroid/recipes/netifaces Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change 1
1
from pythonforandroid .recipe import CompiledComponentsPythonRecipe
2
- from os .path import join
3
-
4
2
5
3
class NetifacesRecipe (CompiledComponentsPythonRecipe ):
6
4
name = 'netifaces'
7
5
version = '0.10.4'
8
6
url = 'https://pypi.python.org/packages/source/n/netifaces/netifaces-{version}.tar.gz'
9
- site_packages_name = 'netifaces'
10
7
depends = ['python2' , 'setuptools' ]
8
+ call_hostpython_via_targetpython = False
9
+ site_packages_name = 'netifaces'
11
10
12
11
def get_recipe_env (self , arch = None ):
13
12
env = super (NetifacesRecipe , self ).get_recipe_env (arch )
14
-
15
- # TODO: fix hardcoded path
16
- # This is required to prevent issue with _io.so import.
17
- hostpython = self .get_recipe ('hostpython2' , self .ctx )
18
- env ['PYTHONPATH' ] = (
19
- join (hostpython .get_build_dir (arch .arch ), 'build' ,
20
- 'lib.linux-x86_64-2.7' ) + ':' + env .get ('PYTHONPATH' , '' )
21
- )
13
+ # Set linker to use the correct gcc
14
+ env ['LDSHARED' ] = env ['CC' ] + ' -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions'
22
15
return env
23
16
24
-
25
17
recipe = NetifacesRecipe ()
You can’t perform that action at this time.
0 commit comments