55 lines
1.7 KiB
Diff
55 lines
1.7 KiB
Diff
From 0aee6b4dcb2b8d0a8e571e071c39d997296b5aa8 Mon Sep 17 00:00:00 2001
|
|
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
Date: Mon, 23 May 2022 02:42:38 -0400
|
|
Subject: [PATCH 3/4] Remove extraneous insertion of default compiler paths
|
|
|
|
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
|
---
|
|
setup.py | 14 ++------------
|
|
1 file changed, 2 insertions(+), 12 deletions(-)
|
|
|
|
diff --git a/setup.py b/setup.py
|
|
index e1db810e..bd4ab057 100644
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -29,7 +29,6 @@ import shutil
|
|
import subprocess
|
|
import warnings
|
|
from collections import defaultdict
|
|
-from sysconfig import get_config_var
|
|
|
|
from setuptools import Extension, find_packages, setup
|
|
|
|
@@ -130,16 +129,7 @@ install_requires = extras_require.pop('default')
|
|
tests_require = extras_require.get('tests', [])
|
|
|
|
# General extension paths
|
|
-if sys.platform.startswith('win'):
|
|
- def get_config_var(name):
|
|
- return '.'
|
|
-include_dir = get_config_var('INCLUDEDIR')
|
|
-library_dir = get_config_var('LIBDIR')
|
|
extra_extension_args = defaultdict(list)
|
|
-if not sys.platform.startswith('win'):
|
|
- extra_extension_args["runtime_library_dirs"].append(
|
|
- get_config_var('LIBDIR')
|
|
- )
|
|
|
|
# Description
|
|
# ===========
|
|
@@ -157,10 +147,10 @@ extensions = [
|
|
Extension(
|
|
'cartopy.trace',
|
|
['lib/cartopy/trace.pyx'],
|
|
- include_dirs=([include_dir, './lib/cartopy', np.get_include()] +
|
|
+ include_dirs=(['./lib/cartopy', np.get_include()] +
|
|
geos_includes),
|
|
libraries=geos_libraries,
|
|
- library_dirs=[library_dir] + geos_library_dirs,
|
|
+ library_dirs=geos_library_dirs,
|
|
language='c++',
|
|
**extra_extension_args),
|
|
]
|
|
--
|
|
2.36.1
|
|
|