wowool-sdk-cpp 3.6.0__tar.gz → 3.6.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/PKG-INFO +2 -2
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/pre_setup.py +3 -1
- wowool_sdk_cpp-3.6.3/sdk_version.txt +1 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/setup.py +6 -2
- wowool_sdk_cpp-3.6.3/version.txt +1 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/wowool/native/core/wowool_sdk.cpp +9 -7
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/wowool/package/lib/wowool_plugin.py +6 -3
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/wowool/package/lib/wowool_sdk.py +5 -4
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/wowool_sdk_cpp.egg-info/PKG-INFO +2 -2
- wowool_sdk_cpp-3.6.0/sdk_version.txt +0 -1
- wowool_sdk_cpp-3.6.0/version.txt +0 -1
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/MANIFEST.in +0 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/common_setup.py +0 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/install_requires.txt +0 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/install_requires_wowool.txt +0 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/long_description.md +0 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/pyproject.toml +0 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/setup.cfg +0 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/wowool/plugin/wowool_plugin.cpp +0 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/wowool/plugin/wowool_plugin.hpp +0 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/wowool_sdk_cpp.egg-info/SOURCES.txt +0 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/wowool_sdk_cpp.egg-info/dependency_links.txt +0 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/wowool_sdk_cpp.egg-info/not-zip-safe +0 -0
- {wowool_sdk_cpp-3.6.0 → wowool_sdk_cpp-3.6.3}/wowool_sdk_cpp.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wowool-sdk-cpp
|
|
3
|
-
Version: 3.6.
|
|
4
|
-
Summary: Wowool NLP Toolkit C++ SDK Python Bindings
|
|
3
|
+
Version: 3.6.3
|
|
4
|
+
Summary: Wowool NLP Toolkit C++ SDK Python Bindings, (use nlp-wowool-sdk instead if you want the Python SDK)
|
|
5
5
|
Author: Wowool
|
|
6
6
|
Requires-Python: >=3.11
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
@@ -147,7 +147,8 @@ def prep_build_setup(wow_stage: Path):
|
|
|
147
147
|
|
|
148
148
|
platform_name = platform.system()
|
|
149
149
|
if "Windows" == platform_name:
|
|
150
|
-
icu_files = ["
|
|
150
|
+
icu_files = ["icudt77.dll", "icuuc77.dll"]
|
|
151
|
+
icu_lib_folder = stage_bin_folder
|
|
151
152
|
elif "Darwin" == platform_name:
|
|
152
153
|
icu_files = ["libicudata.dylib", "libicuuc.dylib"]
|
|
153
154
|
else:
|
|
@@ -196,6 +197,7 @@ def prep_build_setup(wow_stage: Path):
|
|
|
196
197
|
|
|
197
198
|
for fn in icu_files:
|
|
198
199
|
target_fn = package_lib_folder / fn
|
|
200
|
+
logger.info(f"!!!!! COPY ICU {icu_lib_folder} {fn} --> {target_fn}")
|
|
199
201
|
shutil.copy2(icu_lib_folder / fn, target_fn)
|
|
200
202
|
# remove_rpath(target_fn)
|
|
201
203
|
# set_rpath_origin(target_fn)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.3.0
|
|
@@ -332,10 +332,13 @@ class BuildExt(build_ext):
|
|
|
332
332
|
ct = self.compiler.compiler_type
|
|
333
333
|
opts = self.c_opts.get(ct, [])
|
|
334
334
|
link_opts = self.l_opts.get(ct, [])
|
|
335
|
+
print(f"!!!!!!!!!!! Compiler type: {ct}, opts: {opts}, link_opts: {link_opts}")
|
|
335
336
|
if ct == "unix":
|
|
336
337
|
opts.append(cpp_flag(self.compiler))
|
|
337
338
|
if has_flag(self.compiler, "-fvisibility=hidden"):
|
|
338
339
|
opts.append("-fvisibility=hidden")
|
|
340
|
+
elif ct == "msvc":
|
|
341
|
+
opts.append("/std:c++17")
|
|
339
342
|
|
|
340
343
|
for ext in self.extensions:
|
|
341
344
|
ext.define_macros = [("VERSION_INFO", '"{}"'.format(self.distribution.get_version()))]
|
|
@@ -404,6 +407,7 @@ def extension_modules():
|
|
|
404
407
|
library_dirs = [str(Path(WOWOOL_STAGE, "lib")), get_config_var("LIBDEST")]
|
|
405
408
|
libraries = ["wowool"]
|
|
406
409
|
plugin_libraries = libraries
|
|
410
|
+
extra_compile_args.extend(["/DWIN32"])
|
|
407
411
|
else:
|
|
408
412
|
runtime_library_dirs = [runtime_library_path]
|
|
409
413
|
extra_link_args = ["-Xlinker", "-rpath", "-Xlinker", get_origin_keyword(), "-static-libstdc++"]
|
|
@@ -486,11 +490,11 @@ install_requires = [
|
|
|
486
490
|
version = open("version.txt").read().strip()
|
|
487
491
|
|
|
488
492
|
|
|
489
|
-
|
|
493
|
+
setup(
|
|
490
494
|
name=package_name,
|
|
491
495
|
version=version,
|
|
492
496
|
author="Wowool",
|
|
493
|
-
description="Wowool NLP Toolkit C++ SDK Python Bindings",
|
|
497
|
+
description="Wowool NLP Toolkit C++ SDK Python Bindings, (use nlp-wowool-sdk instead if you want the Python SDK)",
|
|
494
498
|
long_description=long_description,
|
|
495
499
|
long_description_content_type="text/markdown",
|
|
496
500
|
setup_requires=["pybind11"],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.6.3
|
|
@@ -38,13 +38,15 @@ namespace py = pybind11;
|
|
|
38
38
|
std::mutex global_python_mutex;
|
|
39
39
|
#define PYTHON_LOCK std::lock_guard<std::mutex> guard(global_python_mutex);
|
|
40
40
|
|
|
41
|
-
bool get_environment_bool(std::string const &env_id, bool default_value)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
41
|
+
bool get_environment_bool(std::string const &env_id, bool default_value)
|
|
42
|
+
{
|
|
43
|
+
char const *value_ptr = std::getenv(env_id.c_str());
|
|
44
|
+
if (value_ptr)
|
|
45
|
+
{
|
|
46
|
+
std::string value(value_ptr);
|
|
47
|
+
return value == "true" || value == "True";
|
|
48
|
+
}
|
|
49
|
+
return default_value;
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
bool lock_gil = get_environment_bool("WOWOOL_LOCK_GIL", false);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
2
|
import os
|
|
3
3
|
import sys
|
|
4
|
+
from platform import system
|
|
4
5
|
|
|
5
6
|
if "WOWOOL_ROOT" in os.environ:
|
|
6
7
|
WOWOOL_ROOT = os.environ["WOWOOL_ROOT"]
|
|
7
8
|
expanded_wowool_root = Path(WOWOOL_ROOT).expanduser().resolve()
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if platform.system() == "Windows":
|
|
9
|
+
|
|
10
|
+
if system() == "Windows":
|
|
11
11
|
WOWOOL_LIB = expanded_wowool_root / "bin"
|
|
12
12
|
if str(WOWOOL_LIB) not in sys.path:
|
|
13
13
|
sys.path.append(str(WOWOOL_LIB))
|
|
@@ -19,4 +19,7 @@ else:
|
|
|
19
19
|
if str(WOWOOL_LIB) not in sys.path:
|
|
20
20
|
sys.path.append(str(WOWOOL_LIB))
|
|
21
21
|
|
|
22
|
+
if system() == "Windows":
|
|
23
|
+
os.add_dll_directory(str(WOWOOL_LIB))
|
|
24
|
+
|
|
22
25
|
from _wowool_plugin import * # noqa: F401, F403
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
from pathlib import Path
|
|
2
2
|
import os
|
|
3
3
|
import sys
|
|
4
|
-
|
|
4
|
+
from platform import system
|
|
5
5
|
|
|
6
6
|
if "WOWOOL_ROOT" in os.environ:
|
|
7
7
|
WOWOOL_ROOT = os.environ["WOWOOL_ROOT"]
|
|
8
8
|
expanded_wowool_root = Path(WOWOOL_ROOT).expanduser().resolve()
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
if platform.system() == "Windows":
|
|
9
|
+
|
|
10
|
+
if system() == "Windows":
|
|
12
11
|
WOWOOL_LIB = expanded_wowool_root / "bin"
|
|
13
12
|
if str(WOWOOL_LIB) not in sys.path:
|
|
14
13
|
sys.path.append(str(WOWOOL_LIB))
|
|
@@ -20,6 +19,8 @@ else:
|
|
|
20
19
|
if str(WOWOOL_LIB) not in sys.path:
|
|
21
20
|
sys.path.append(str(WOWOOL_LIB))
|
|
22
21
|
|
|
22
|
+
if system() == "Windows":
|
|
23
|
+
os.add_dll_directory(str(WOWOOL_LIB))
|
|
23
24
|
|
|
24
25
|
from _wowool_sdk import * # noqa
|
|
25
26
|
from _wowool_sdk import (
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: wowool-sdk-cpp
|
|
3
|
-
Version: 3.6.
|
|
4
|
-
Summary: Wowool NLP Toolkit C++ SDK Python Bindings
|
|
3
|
+
Version: 3.6.3
|
|
4
|
+
Summary: Wowool NLP Toolkit C++ SDK Python Bindings, (use nlp-wowool-sdk instead if you want the Python SDK)
|
|
5
5
|
Author: Wowool
|
|
6
6
|
Requires-Python: >=3.11
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.2.0
|
wowool_sdk_cpp-3.6.0/version.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
3.6.0
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|