Lines 201-207
Link Here
|
201 |
and sysconfig.get_config_var('Py_ENABLE_SHARED'): |
201 |
and sysconfig.get_config_var('Py_ENABLE_SHARED'): |
202 |
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")): |
202 |
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")): |
203 |
# building third party extensions |
203 |
# building third party extensions |
204 |
self.library_dirs.append(sysconfig.get_config_var('LIBDIR')) |
204 |
sysroot = os.getenv('SYSROOT') |
|
|
205 |
if sysroot is None: |
206 |
sysroot = '' |
207 |
|
208 |
self.library_dirs.append(sysroot+sysconfig.get_config_var('LIBDIR')) |
205 |
else: |
209 |
else: |
206 |
# building python standard extensions |
210 |
# building python standard extensions |
207 |
self.library_dirs.append('.') |
211 |
self.library_dirs.append('.') |