From patchwork Fri Aug 2 12:14:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre PAYEN X-Patchwork-Id: 1141143 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="eLgVH7yx"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 460R1h735Vz9sBF for ; Fri, 2 Aug 2019 22:15:02 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 42A6D87AB1; Fri, 2 Aug 2019 12:15:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wm40UoE-oPs0; Fri, 2 Aug 2019 12:14:58 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id AA7AD87A1A; Fri, 2 Aug 2019 12:14:58 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 5A7891BF331 for ; Fri, 2 Aug 2019 12:14:57 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 577F98610E for ; Fri, 2 Aug 2019 12:14:57 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hno8SGMSagyJ for ; Fri, 2 Aug 2019 12:14:56 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by fraxinus.osuosl.org (Postfix) with ESMTPS id D1F2B86103 for ; Fri, 2 Aug 2019 12:14:55 +0000 (UTC) Received: by mail-wm1-f48.google.com with SMTP id s15so44779951wmj.3 for ; Fri, 02 Aug 2019 05:14:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8ARZLeP7VougrUwYhGb2heiCeoQcwCgm76z7NoYmGEc=; b=eLgVH7yxtivNnO1PVEoZwUZ9ChyoJTLdkYHfBj8Z2Df509a8QzZEEVJcPYmOUW5rmQ Xg4Hev44+yDB2GT8FLp0bIlNWYJrDe2WMI6oqf8ivkuHIbU7vC39QKn9qSchQAFnOZKT AkT8wfBB/h3Fx44BUjfO3voy3EUzLg4j5GSt4K+N3DTic/hJWk+tG2u8rsouB/YF3gSj qqlBBRBROh1ZFsqHU4ePvYRIu0Mw/30h8VIjHRC4lc86DUe/uFrIq7/1IdzumqPBJGrT uh/fhyc/eaFJllqhYkuGYC+ehpKE5RSPHPpd7IOdNavGzh2dtrl6jL1PRqbt2shQsbJG qXGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8ARZLeP7VougrUwYhGb2heiCeoQcwCgm76z7NoYmGEc=; b=kZnrbtC1PDege5I2FiG5GXeuv8L9SZ7f+bnAZeKXs4DqsMjPUcXsMGzniwDSfkZTaN JcJCqupc/+30PUQVb5cNvrZHQ83sYcECEje64SlTx3rHlY9zfWO4BehHnkaSdiBf+8no Afc8TFpRf1aDQQ1yG7bvUQbBjIAzxpQ/hd7JCbZx7mNKuZDGKamDYacleFvAKRp32CLO mQzz2SAPao/r7XzmgFAVWiQBJUMLDutsKNpTAjB/3c97GmkU1sFgQy+xlCIMF2gRpdig c8YgTX6j6gYzzJzsu5JU38ukmuZEwzT1NRZV/3RpJCCixuPD0F0AydmSI+E5X0k7QcqA pPGA== X-Gm-Message-State: APjAAAXgTQsmqXhjNsk1D8YV8ILWz8Vosr4N7anSftVZehQTci04CBk7 nUt1ZM3+Od52WVqK+vI4weZy9OyyZqc= X-Google-Smtp-Source: APXvYqyNhpSBFv9zS0IrrXCb+boLiTtVwHQgOhP2OMImAdYUxPwqQwzdvSHe8lNxFMrrqerINP3FEQ== X-Received: by 2002:a7b:cd9a:: with SMTP id y26mr4595761wmj.44.1564748094000; Fri, 02 Aug 2019 05:14:54 -0700 (PDT) Received: from P-NAN-GEORGETOWN.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id o7sm65380723wmf.43.2019.08.02.05.14.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 05:14:53 -0700 (PDT) From: Aalx To: buildroot@buildroot.org Date: Fri, 2 Aug 2019 14:14:49 +0200 Message-Id: <20190802121449.17254-1-alexandre.payen@smile.fr> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] package/python-numpy: remove unsafe path possibly contamine target package with host libraries X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre PAYEN , Romain Naour Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Romain Naour When python-numpy is cross-compiled, the path provided by the build process are hard-coded. Those paths are unsafe because they could poison the target package with host libraries. Doing so, we can cross-compile python-scipy added in a following patch. So : - Remove every unsafe path for cross-compiling in python-numpy. - Let the buildroot infrastructure provide the correct path through sysroot. A similar fix have been done in Yocto Project. http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ced097eb4e30133acc6c3e9ed841b3463844cd39 Signed-off-by: Romain Naour Signed-off-by: Alexandre PAYEN --- .../0001-distutils-remove-poisoned-path.patch | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 package/python-numpy/0001-distutils-remove-poisoned-path.patch diff --git a/package/python-numpy/0001-distutils-remove-poisoned-path.patch b/package/python-numpy/0001-distutils-remove-poisoned-path.patch new file mode 100644 index 0000000000..8bd19db8e8 --- /dev/null +++ b/package/python-numpy/0001-distutils-remove-poisoned-path.patch @@ -0,0 +1,79 @@ +From 89e5645bd80b57252a3babdbd68277490dc187e5 Mon Sep 17 00:00:00 2001 +From: Romain Naour +Date: Fri, 7 Jun 2019 18:02:53 +0200 +Subject: [PATCH] distutils: remove poisoned path + +When python-numpy is cross-compiled, the path provided by the build process are +hard-coded. Those paths are unsafe because they could poison the target package +with host libraries. + +Doing so, we can cross-compile python-scipy added in a following patch. + +So : +- Remove every unsafe path for cross-compiling in python-numpy. +- Let the buildroot infrastructure provide the correct path through sysroot. + +A similar fix have been done in Yocto Project. +http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=ced097eb4e30133acc6c3e9ed841b3463844cd39 + +Signed-off-by: Romain Naour +Signed-off-by: Alexandre PAYEN +--- + numpy/distutils/system_info.py | 33 ++++++--------------------------- + 1 file changed, 6 insertions(+), 27 deletions(-) + +diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py +index 806f4f7d3..7cadd325d 100644 +--- a/numpy/distutils/system_info.py ++++ b/numpy/distutils/system_info.py +@@ -276,29 +276,13 @@ if sys.platform == 'win32': + add_system_root(os.path.join(conda_dir, 'Library')) + + else: +- default_lib_dirs = libpaths(['/usr/local/lib', '/opt/lib', '/usr/lib', +- '/opt/local/lib', '/sw/lib'], platform_bits) ++ default_lib_dirs = [] + default_runtime_dirs = [] +- default_include_dirs = ['/usr/local/include', +- '/opt/include', '/usr/include', +- # path of umfpack under macports +- '/opt/local/include/ufsparse', +- '/opt/local/include', '/sw/include', +- '/usr/include/suitesparse'] +- default_src_dirs = ['.', '/usr/local/src', '/opt/src', '/sw/src'] +- +- default_x11_lib_dirs = libpaths(['/usr/X11R6/lib', '/usr/X11/lib', +- '/usr/lib'], platform_bits) +- default_x11_include_dirs = ['/usr/X11R6/include', '/usr/X11/include', +- '/usr/include'] +- +- if os.path.exists('/usr/lib/X11'): +- globbed_x11_dir = glob('/usr/lib/*/libX11.so') +- if globbed_x11_dir: +- x11_so_dir = os.path.split(globbed_x11_dir[0])[0] +- default_x11_lib_dirs.extend([x11_so_dir, '/usr/lib/X11']) +- default_x11_include_dirs.extend(['/usr/lib/X11/include', +- '/usr/include/X11']) ++ default_include_dirs = [] ++ default_src_dirs = ['.'] ++ ++ default_x11_lib_dirs = [] ++ default_x11_include_dirs = [] + + tmp = None + try: +@@ -321,11 +305,6 @@ else: + if tmp is not None: + tmp.close() + +-if os.path.join(sys.prefix, 'lib') not in default_lib_dirs: +- default_lib_dirs.insert(0, os.path.join(sys.prefix, 'lib')) +- default_include_dirs.append(os.path.join(sys.prefix, 'include')) +- default_src_dirs.append(os.path.join(sys.prefix, 'src')) +- + default_lib_dirs = [_m for _m in default_lib_dirs if os.path.isdir(_m)] + default_runtime_dirs = [_m for _m in default_runtime_dirs if os.path.isdir(_m)] + default_include_dirs = [_m for _m in default_include_dirs if os.path.isdir(_m)] +-- +2.20.1 + From patchwork Fri Aug 2 12:14:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre PAYEN X-Patchwork-Id: 1141144 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=smile.fr Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=smile-fr.20150623.gappssmtp.com header.i=@smile-fr.20150623.gappssmtp.com header.b="FWZoW9wq"; dkim-atps=neutral Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 460R1q3GPGz9sBF for ; Fri, 2 Aug 2019 22:15:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B911786AAA; Fri, 2 Aug 2019 12:15:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hpZtJodWoJ_s; Fri, 2 Aug 2019 12:15:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 8FF228691A; Fri, 2 Aug 2019 12:15:05 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id F1DBB1BF331 for ; Fri, 2 Aug 2019 12:15:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id EE87123235 for ; Fri, 2 Aug 2019 12:15:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zMZY0gBGFF-P for ; Fri, 2 Aug 2019 12:15:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by silver.osuosl.org (Postfix) with ESMTPS id 8390F23086 for ; Fri, 2 Aug 2019 12:15:03 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id a15so67746268wmj.5 for ; Fri, 02 Aug 2019 05:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=smile-fr.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sDT5HPRbJCsnONxRFnLCYpwfYOW3zLtWg6GvKa5S21o=; b=FWZoW9wq3V9CmR3Dbv57eeegRHlQbtClhwdDC42er5iuWV+5T33nshxmn8kZvrQ38C d1kxjO3zde8fDSyq1MMDI9umXYds+XUrS0Pn1ScLGDZRTJtXarE+vWF52RLeKFIlQ/3d TLTSG6wL65b7s5SnkmX4cSUF9WLXPmulYk/iPviToScpHOtAE7gZIzcjqu6rwFbj1WDy Z5KD+JAGfALXfMGjVG0fWWUe8+kCSosAUxYy+96OJDi13fdEztSXPvL/4NnUMUQOQLZa UkKMhkItxZPhUw7/96/xjkrkoeanpSoeqt0JmOjagd6Ch1UMlVKtKS13FVnmJh11ewX6 O5KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sDT5HPRbJCsnONxRFnLCYpwfYOW3zLtWg6GvKa5S21o=; b=NDsvkb/iJstSYK9mUp5blhJWCSwm9AvfqMINhje+R+2K+QmP2X5BH8jvMu3x/LC7h1 fsxwbFHze4m5tKGn6mjRQ2kCreN9yPrx8mNsk4eHQow+ecbR5X9wplz6xun3zviurYUx 1kZjfHNcbE10PRTeD6XIKDrRrPJFEAbBfn1rCbHAzrWd1sVxS2nPJTPfWlGnghHf8I4u y8w/529X7+ww0djN7SA9/QDXrJpNEZ3m/0qznLOgRKh9Tmf3vS3EIHhsrMgOH29C7kXv kYJF0BnHjJkrcd5R7tD9mTaUAOgoz1SMj1ZCzNVWOlU1MJ3Dl+HUK1rJxxKenpSasFDs TmYg== X-Gm-Message-State: APjAAAVQ2SOgrAu1jPgIFt+2x5aXDgBLYL2gWWdPII4w+RLgbXnmuZfP Skdd9mzn7L9SKkB92VCavB3NWJSxTxY= X-Google-Smtp-Source: APXvYqxvOVDR3/e+t3EkUP3OJcXEkyJqg2LWC6Vm2fLInhZj/i2xHnLUb8NGR4FnN1BwShhs44Yxvg== X-Received: by 2002:a7b:ce83:: with SMTP id q3mr4538756wmj.116.1564748101784; Fri, 02 Aug 2019 05:15:01 -0700 (PDT) Received: from P-NAN-GEORGETOWN.nantes.intranet (static-css-ccs-204145.business.bouyguestelecom.com. [176.157.204.145]) by smtp.gmail.com with ESMTPSA id g131sm55071452wmf.37.2019.08.02.05.15.00 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 05:15:01 -0700 (PDT) From: Aalx To: buildroot@buildroot.org Date: Fri, 2 Aug 2019 14:14:58 +0200 Message-Id: <20190802121458.17305-1-alexandre.payen@smile.fr> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 2/2] package/python-scipy: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre PAYEN , Romain Naour Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Romain Naour Python building set -shared in LDSHARED option but python-numpy distutils use this as a file and then generate an error (file not found). The path is not exact too. It should link to target site-packages and not host. An other error occur when building, the build mechanism will search for a binary named gfortran, it is badly prefixed so the build configuration need to be modify in order to get the proper binary name. Since Version 1.3.0 python-numpy does not support python2 anymore Source : https://github.com/scipy/scipy/releases/tag/v1.3.0 python-scipy doesn't build when using clapack as lapack provider. In the configure step python-scipy is looking for cblas.h which is not provided by clapack. So : - Moving -shared in LDFLAG option to avoid `file not found` - Editing the path to get the target site-packages - Editing python-scipy.mk to add the correct binary name. - Allow only lapack as liblapack provider. Signed-off-by: Romain Naour Signed-off-by: Alexandre PAYEN --- package/Config.in | 1 + package/python-scipy/Config.in | 22 ++++++++++++++++++ package/python-scipy/python-scipy.hash | 4 ++++ package/python-scipy/python-scipy.mk | 32 ++++++++++++++++++++++++++ 4 files changed, 59 insertions(+) create mode 100644 package/python-scipy/Config.in create mode 100644 package/python-scipy/python-scipy.hash create mode 100644 package/python-scipy/python-scipy.mk diff --git a/package/Config.in b/package/Config.in index 5f408f4de9..68905849dc 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1047,6 +1047,7 @@ menu "External python modules" source "package/python-scapy/Config.in" source "package/python-scapy3k/Config.in" source "package/python-schedule/Config.in" + source "package/python-scipy/Config.in" source "package/python-sdnotify/Config.in" source "package/python-secretstorage/Config.in" source "package/python-see/Config.in" diff --git a/package/python-scipy/Config.in b/package/python-scipy/Config.in new file mode 100644 index 0000000000..ef35cd138d --- /dev/null +++ b/package/python-scipy/Config.in @@ -0,0 +1,22 @@ +config BR2_PACKAGE_PYTHON_SCIPY + bool "python-scipy" + depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS + depends on BR2_PACKAGE_PYTHON3 + depends on BR2_TOOLCHAIN_HAS_FORTRAN # lapack + select BR2_PACKAGE_LIBLAPACK + select BR2_PACKAGE_LIBLAPACK_FORCE_LAPACK + select BR2_PACKAGE_LAPACK_COMPLEX + select BR2_PACKAGE_PYTHON_NUMPY + help + SciPy (pronounced "Sigh Pie") is open-source software for + mathematics, science, and engineering. It includes modules + for statistics, optimization, integration, linear algebra, + Fourier transforms, signal and image processing, ODE solvers, + and more. + + http://www.scipy.org/ + +comment "python-scipy needs lapack, gfortran" + depends on !BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS + depends on !BR2_PACKAGE_PYTHON3 + depends on !BR2_TOOLCHAIN_HAS_FORTRAN || !BR2_PACKAGE_LAPACK_COMPLEX diff --git a/package/python-scipy/python-scipy.hash b/package/python-scipy/python-scipy.hash new file mode 100644 index 0000000000..3db1ac2346 --- /dev/null +++ b/package/python-scipy/python-scipy.hash @@ -0,0 +1,4 @@ +# sha256 locally calculated +sha256 c3bb4bd2aca82fb498247deeac12265921fe231502a6bc6edea3ee7fe6c40a7a scipy-1.3.0.tar.gz +# License files, locally calculated +sha256 904942f7df1dc0f4a48af8d72405854fd96497bd1fe9ddb2c69d1797c22dfcd7 LICENSE.txt diff --git a/package/python-scipy/python-scipy.mk b/package/python-scipy/python-scipy.mk new file mode 100644 index 0000000000..793545ded0 --- /dev/null +++ b/package/python-scipy/python-scipy.mk @@ -0,0 +1,32 @@ +################################################################################ +# +# python-scipy +# +################################################################################ + +PYTHON_SCIPY_VERSION = 1.3.0 +PYTHON_SCIPY_SOURCE = scipy-$(PYTHON_SCIPY_VERSION).tar.gz +PYTHON_SCIPY_SITE = https://files.pythonhosted.org/packages/cb/97/361c8c6ceb3eb765371a702ea873ff2fe112fa40073e7d2b8199db8eb56e +PYTHON_SCIPY_SETUP_TYPE = setuptools +PYTHON_SCIPY_LICENSE = BSD-3c +PYTHON_SCIPY_LICENSE_FILES = LICENSE.txt +PYTHON_SCIPY_INSTALL_STAGING = YES + +PYTHON_SCIPY_DEPENDENCIES = host-python-numpy python-numpy liblapack + +# python-scipy needs lapack sources to build. +PYTHON_SCIPY_ENV = \ + LDSHARED="$(TARGET_CROSS)gcc" \ + F70="$(TARGET_FC)" \ + F90="$(TARGET_FC)" \ + FC="$(TARGET_FC)" \ + LAPACK_SRC=$(LAPACK_DIR) \ + BLAS_SRC=$(LAPACK_DIR) \ + LAPACK=$(STAGING_DIR)/usr/lib \ + BLAS=$(STAGING_DIR)/usr/lib \ + ATLAS=none \ + LDFLAGS="$(TARGET_LDFLAGS) -shared -L$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/numpy/core/lib" + +PYTHON_SCIPY_BUILD_OPTS = config_fc --fcompiler=gnu95 + +$(eval $(python-package))