Skip to content

Commit 9f9eda5

Browse files
committed
try gh386
1 parent be5d4c2 commit 9f9eda5

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

recipe/gh389.patch

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
commit b6d2d5a9a6a5719c0cf1a44e2a52d53448590dfe
2+
Author: Isuru Fernando <[email protected]>
3+
Date: Sat Feb 19 02:47:58 2022 -0600
4+
5+
Use build from distutils
6+
7+
diff --git a/setup.py b/setup.py
8+
index eef0285..bac05f9 100644
9+
--- a/setup.py
10+
+++ b/setup.py
11+
@@ -22,12 +22,13 @@ if use_distutils is not None:
12+
print("Value {} for USE_DISTUTILS treated as False".
13+
format(use_distutils))
14+
15+
+from distutils.command.build import build as _build
16+
+
17+
if use_setuptools:
18+
try:
19+
from setuptools import setup
20+
from setuptools.command.install import install as _install
21+
from setuptools.command.build_ext import build_ext as _build_ext
22+
- from setuptools.command.build import build as _build
23+
except ImportError:
24+
use_setuptools = False
25+
26+
@@ -35,7 +36,6 @@ if not use_setuptools:
27+
from distutils.core import setup
28+
from distutils.command.install import install as _install
29+
from distutils.command.build_ext import build_ext as _build_ext
30+
- from distutils.command.build import build as _build
31+
32+
cmake_opts = [("PYTHON_BIN", sys.executable),
33+
("CMAKE_INSTALL_RPATH_USE_LINK_PATH", "yes")]

recipe/meta.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ source:
99
- url: https://github.com/symengine/symengine.py/releases/download/v{{ version }}/symengine.py-{{ version }}.tar.gz
1010
sha256: d4d4580f73cd0c00ea0824a7410398a866e0484086f97367409dd868c0fee9ea
1111
folder: python
12+
patches:
13+
- gh389.patch
1214

1315
- url: https://github.com/symengine/symengine/releases/download/v{{ cxx_version }}/symengine-{{ cxx_version }}.tar.gz
1416
sha256: dcf174ac708ed2acea46691f6e78b9eb946d8a2ba62f75e87cf3bf4f0d651724

0 commit comments

Comments
 (0)