-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
87 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Requires: py2-numpy py2-numba py2-uproot py2-h5py py3-numpy | ||
Requires: py2-numpy py3-numba py2-uproot py2-h5py py3-numpy py2-cachetools | ||
Patch0: py2-oamap-Const2Literal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Requires: py2-funcsigs py2-six py2-singledispatch py2-llvmlite py3-numpy python3 | ||
Patch0: py3-numba-llvm33 | ||
|
||
%define source0 git+https://github.com/numba/numba?obj=master/1ea770564cb3c0c6cb9d8ab92e7faf23cd4c4c19&export=numba-%{realversion}&output=/source.tar.gz | ||
%define RelocatePython %{i}/bin/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
diff -Naur a/ffi/build.py b/ffi/build.py | ||
--- a/ffi/build.py 2020-01-10 14:51:38.000000000 +0100 | ||
+++ b/ffi/build.py 2020-01-10 14:45:27.059843040 +0100 | ||
@@ -110,7 +110,7 @@ | ||
out = out.decode('latin1') | ||
print(out) | ||
if not (out.startswith('8.0.') or out.startswith('7.0.') | ||
- or out.startswith('7.1.')): | ||
+ or out.startswith('7.1.') or out.startswith('9.0.') or out.startswith('11.0.')): | ||
msg = ( | ||
"Building llvmlite requires LLVM 7.0.x, 7.1.x or 8.0.x Be sure to " | ||
"set LLVM_CONFIG to the right executable path.\n" | ||
diff --git a/ffi/linker.cpp b/ffi/linker.cpp | ||
index 57bb80b..2cc0019 100644 | ||
--- a/ffi/linker.cpp | ||
+++ b/ffi/linker.cpp | ||
@@ -42,7 +42,7 @@ LLVMPY_LinkModules(LLVMModuleRef Dest, LLVMModuleRef Src, const char **Err) | ||
auto OldDiagnosticHandler = Ctx.getDiagnosticHandler(); | ||
|
||
// set the handler to a new one | ||
- Ctx.setDiagnosticHandler(llvm::make_unique<ReportNotAbortDiagnosticHandler>(errstream)); | ||
+ Ctx.setDiagnosticHandler(std::make_unique<ReportNotAbortDiagnosticHandler>(errstream)); | ||
|
||
// link | ||
bool failed = LLVMLinkModules2(Dest, Src); | ||
diff --git a/ffi/transforms.cpp b/ffi/transforms.cpp | ||
index 23bfd72..8cb8830 100644 | ||
--- a/ffi/transforms.cpp | ||
+++ b/ffi/transforms.cpp | ||
@@ -6,7 +6,7 @@ | ||
|
||
extern "C" { | ||
|
||
-namespace llvm { | ||
+ /*namespace llvm { | ||
inline PassManagerBuilder *unwrap(LLVMPassManagerBuilderRef P) { | ||
return reinterpret_cast<PassManagerBuilder*>(P); | ||
} | ||
@@ -14,7 +14,7 @@ namespace llvm { | ||
inline LLVMPassManagerBuilderRef wrap(PassManagerBuilder *P) { | ||
return reinterpret_cast<LLVMPassManagerBuilderRef>(P); | ||
} | ||
-} | ||
+ }*/ | ||
|
||
|
||
API_EXPORT(LLVMPassManagerBuilderRef) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/setup.py b/setup.py | ||
index d9af186..edfdd3c 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -302,12 +302,8 @@ def get_ext_modules(): | ||
|
||
packages = find_packages(include=["numba", "numba.*"]) | ||
|
||
-build_requires = [f'numpy >={min_numpy_build_version}'] | ||
-install_requires = [ | ||
- f'llvmlite >={min_llvmlite_version},<={max_llvmlite_version}', | ||
- f'numpy >={min_numpy_run_version}', | ||
- 'setuptools', | ||
-] | ||
+build_requires = ['numpy >=1.11'] | ||
+install_requires = ['llvmlite>=0.31.0dev0,<=0.33.0.dev0', 'numpy', 'setuptools'] | ||
|
||
metadata = dict( | ||
name='numba', | ||
@@ -346,7 +342,7 @@ metadata = dict( | ||
packages=packages, | ||
setup_requires=build_requires, | ||
install_requires=install_requires, | ||
- python_requires=f">={min_python_version}", | ||
+ python_requires=">=3.6", | ||
license="BSD", | ||
cmdclass=cmdclass, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters