Merge pull request #68716 from jonringer/bump-datatable
pythonPackage.datatable: 0.8.0 -> 0.9.0
This commit is contained in:
commit
1eea42f89a
@ -1,32 +1,25 @@
|
|||||||
{ blessed
|
{ stdenv, lib, buildPythonPackage, fetchPypi, substituteAll, pythonOlder
|
||||||
, buildPythonPackage
|
, blessed
|
||||||
, fetchPypi
|
, docutils
|
||||||
, lib
|
|
||||||
, libcxx
|
, libcxx
|
||||||
, libcxxabi
|
, libcxxabi
|
||||||
, llvm
|
, llvm
|
||||||
, openmp
|
, openmp
|
||||||
, pytest
|
, pytest
|
||||||
, pythonOlder
|
|
||||||
, stdenv
|
|
||||||
, substituteAll
|
|
||||||
, typesentry
|
, typesentry
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "datatable";
|
pname = "datatable";
|
||||||
version = "0.8.0";
|
version = "0.9.0";
|
||||||
|
disabled = pythonOlder "3.5";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "1s8z81zffrckvdwrrl0pkjc7gsdvjxw59xgg6ck81dl7gkh5grjk";
|
sha256 = "1shwjkm9nyaj6asn57vwdd74pn13pggh14r6dzv729lzxm7nm65f";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = lib.optionals stdenv.isDarwin [
|
||||||
# Disable the compiler monkey patching, and remove the task that's copying
|
|
||||||
# the native dependencies to the build directory.
|
|
||||||
./remove-compiler-monkeypatch_disable-native-relocation.patch
|
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
|
||||||
# Replace the library auto-detection with hardcoded paths.
|
# Replace the library auto-detection with hardcoded paths.
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./hardcode-library-paths.patch;
|
src = ./hardcode-library-paths.patch;
|
||||||
@ -37,16 +30,13 @@ buildPythonPackage rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
disabled = pythonOlder "3.5";
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ typesentry blessed ];
|
propagatedBuildInputs = [ typesentry blessed ];
|
||||||
buildInputs = [ llvm ] ++ lib.optionals stdenv.isDarwin [ openmp ];
|
buildInputs = [ llvm ] ++ lib.optionals stdenv.isDarwin [ openmp ];
|
||||||
checkInputs = [ pytest ];
|
checkInputs = [ docutils pytest ];
|
||||||
|
|
||||||
LLVM = llvm;
|
LLVM = llvm;
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
# py.test adds local datatable to path, which doesn't contain built native library.
|
|
||||||
mv datatable datatable.hidden
|
mv datatable datatable.hidden
|
||||||
pytest
|
pytest
|
||||||
'';
|
'';
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
diff --git a/setup.py b/setup.py
|
|
||||||
index 58fc875..8032561 100644
|
|
||||||
--- a/setup.py
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -141,23 +141,6 @@ if cmd in ("build", "bdist_wheel", "build_ext", "install"):
|
|
||||||
extra_link_args = get_extra_link_args()
|
|
||||||
cpp_files = get_c_sources("c")
|
|
||||||
|
|
||||||
- with TaskContext("Copy dynamic libraries") as log:
|
|
||||||
- # Copy system libraries into the datatable/lib folder, so that they can
|
|
||||||
- # be packaged with the wheel
|
|
||||||
- libs = find_linked_dynamic_libraries()
|
|
||||||
- for libpath in libs:
|
|
||||||
- trgfile = os.path.join("datatable", "lib",
|
|
||||||
- os.path.basename(libpath))
|
|
||||||
- if os.path.exists(trgfile):
|
|
||||||
- log.info("File %s already exists, skipped" % trgfile)
|
|
||||||
- else:
|
|
||||||
- log.info("Copying %s to %s" % (libpath, trgfile))
|
|
||||||
- shutil.copy(libpath, trgfile)
|
|
||||||
-
|
|
||||||
- if ismacos():
|
|
||||||
- monkey_patch_compiler()
|
|
||||||
-
|
|
||||||
-
|
|
||||||
# Create the git version file
|
|
||||||
if cmd in ("build", "sdist", "bdist_wheel", "install"):
|
|
||||||
make_git_version_file(True)
|
|
Loading…
x
Reference in New Issue
Block a user