forked from single-cell-data/TileDB-SOMA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Add Windows support for the Python API (single-cell-data#1811)…
…" (single-cell-data#1959) This reverts commit ff491ab.
- Loading branch information
Showing
28 changed files
with
81 additions
and
194 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 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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
.vscode* | ||
.vs | ||
*.swp | ||
dist/* | ||
**/venv | ||
|
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 |
---|---|---|
|
@@ -61,9 +61,13 @@ | |
|
||
if libtiledbsoma_dir is None: | ||
scripts_dir = this_dir / "dist_links" / "scripts" | ||
scripts_dir = scripts_dir.resolve() | ||
|
||
libtiledbsoma_dir = scripts_dir.parent / "dist" | ||
if scripts_dir.is_symlink(): | ||
# in git source tree | ||
libtiledbsoma_dir = this_dir.parent.parent / "dist" | ||
else: | ||
# in extracted sdist, with libtiledbsoma copied into dist_links/ | ||
libtiledbsoma_dir = this_dir / "dist_links" / "dist" | ||
else: | ||
libtiledbsoma_dir = pathlib.Path(libtiledbsoma_dir) | ||
|
||
|
@@ -147,10 +151,7 @@ def find_or_build_package_data(setuptools_cmd): | |
# cause that cache to fall out of sync. | ||
# | ||
# See `.github/workflows/python-ci-single.yml` for configuration. | ||
if os.name == "nt": | ||
subprocess.run(["pwsh.exe", "./bld.ps1"], cwd=scripts_dir, check=True) | ||
else: | ||
subprocess.run(["./bld"], cwd=scripts_dir, check=True) | ||
subprocess.run(["./bld"], cwd=scripts_dir) | ||
lib_dir = libtiledbsoma_exists() | ||
assert lib_dir, "error when building libtiledbsoma from source" | ||
|
||
|
@@ -197,13 +198,10 @@ def run(self): | |
str(libtiledbsoma_dir / "lib"), | ||
str(tiledb_dir / "lib"), | ||
] | ||
|
||
CXX_FLAGS = [] | ||
|
||
if os.name != "nt": | ||
CXX_FLAGS.append(f'-Wl,-rpath,{str(libtiledbsoma_dir / "lib")}') | ||
CXX_FLAGS.append(f'-Wl,-rpath,{str(tiledb_dir / "lib")}') | ||
|
||
CXX_FLAGS = [ | ||
f'-Wl,-rpath,{str(libtiledbsoma_dir / "lib")}', | ||
f'-Wl,-rpath,{str(tiledb_dir / "lib")}', | ||
] | ||
if sys.platform == "darwin": | ||
CXX_FLAGS.append("-mmacosx-version-min=10.14") | ||
|
||
|
@@ -227,7 +225,7 @@ def run(self): | |
setuptools.setup( | ||
name="tiledbsoma", | ||
description="Python API for efficient storage and retrieval of single-cell data using TileDB", | ||
long_description=open("README.md", encoding="utf-8").read(), | ||
long_description=open("README.md").read(), | ||
long_description_content_type="text/markdown", | ||
author="TileDB, Inc.", | ||
author_email="[email protected]", | ||
|
@@ -244,7 +242,6 @@ def run(self): | |
"Operating System :: Unix", | ||
"Operating System :: POSIX :: Linux", | ||
"Operating System :: MacOS :: MacOS X", | ||
"Operating System :: Microsoft :: Windows", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
|
@@ -261,10 +258,9 @@ def run(self): | |
["src/tiledbsoma/pytiledbsoma.cc"], | ||
include_dirs=INC_DIRS, | ||
library_dirs=LIB_DIRS, | ||
libraries=["tiledbsoma"] + (["tiledb"] if os.name == "nt" else []), | ||
libraries=["tiledbsoma"], | ||
extra_link_args=CXX_FLAGS, | ||
extra_compile_args=["-std=c++17" if os.name != "nt" else "/std:c++17"] | ||
+ CXX_FLAGS, | ||
extra_compile_args=["-std=c++17"] + CXX_FLAGS, | ||
language="c++", | ||
) | ||
], | ||
|
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 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 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 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
Oops, something went wrong.