Skip to content

Commit

Permalink
Make: Remove robin-map dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Aug 14, 2023
1 parent 0307e6e commit 89a0b75
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 27 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
- name: Build locally
run: python -m pip install .
- name: Test with PyTest
run: pytest python/scripts/test.py
run: pytest python/scripts/


test_python_37:
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
run: python -m pip install .

- name: Test with PyTest
run: pytest python/scripts/test.py
run: pytest python/scripts/


test_javascript:
Expand Down
1 change: 0 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ let package = Package(
cxxSettings: [
.headerSearchPath("../include/"),
.headerSearchPath("../fp16/include/"),
.headerSearchPath("../robin-map/include/"),
.headerSearchPath("../simismd/include/")
]
),
Expand Down
28 changes: 16 additions & 12 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,36 @@
"targets": [
{
"target_name": "usearch",
"sources": [
"javascript/lib.cpp"
],
"sources": ["javascript/lib.cpp"],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"include",
"fp16/include",
"robin-map/include",
"simsimd/include"
"simsimd/include",
],
"dependencies": ["<!(node -p \"require('node-addon-api').gyp\")"],
"cflags": [
"-fexceptions",
"-Wno-unknown-pragmas",
"-Wno-maybe-uninitialized",
],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
"cflags_cc": [
"-fexceptions",
"-Wno-unknown-pragmas",
"-Wno-maybe-uninitialized",
"-std=c++11",
],
"cflags": ["-fexceptions", "-Wno-unknown-pragmas", "-Wno-maybe-uninitialized"],
"cflags_cc": ["-fexceptions", "-Wno-unknown-pragmas", "-Wno-maybe-uninitialized", "-std=c++11"],
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "10.15"
"MACOSX_DEPLOYMENT_TARGET": "10.15",
},
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 1,
"AdditionalOptions": ["-std:c++11"]
"AdditionalOptions": ["-std:c++11"],
}
}
},
}
]
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ model {
include "**/*.cpp"
}
exportedHeaders {
srcDirs "include", "fp16/include", "robin-map/include", "simsimd/include", "${Jvm.current().javaHome}/include"
srcDirs "include", "fp16/include", "simsimd/include", "${Jvm.current().javaHome}/include"
}
}
}
Expand Down
1 change: 0 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ fn main() {
.include("include")
.include("rust")
.include("fp16/include")
.include("robin-map/include")
.include("simsimd/include")
.compile("usearch");

Expand Down
1 change: 0 additions & 1 deletion c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
set(USEARCH_PUNNED_INCLUDE_DIRS
"${CMAKE_CURRENT_SOURCE_DIR}/../include"
"${CMAKE_CURRENT_SOURCE_DIR}/../fp16/include"
"${CMAKE_CURRENT_SOURCE_DIR}/../robin-map/include"
"${CMAKE_CURRENT_SOURCE_DIR}/../simsimd/include"
"${CMAKE_CURRENT_SOURCE_DIR}/"
)
Expand Down
1 change: 0 additions & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ include(clipp)
set(USEARCH_PUNNED_INCLUDE_DIRS
"${CMAKE_CURRENT_SOURCE_DIR}/../include"
"${CMAKE_CURRENT_SOURCE_DIR}/../fp16/include"
"${CMAKE_CURRENT_SOURCE_DIR}/../robin-map/include"
"${CMAKE_CURRENT_SOURCE_DIR}/../simsimd/include"
"${CMAKE_CURRENT_SOURCE_DIR}/"
)
Expand Down
3 changes: 1 addition & 2 deletions docs/compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ g++ -shared -o USearchJNI.dll cloud_unum_usearch_Index.o -Wl,--add-stdcall-alias
g++ -std=c++11 -c -fPIC \
-I../../../../include \
-I../../../../fp16/include \
-I../../../../robin-map/include \
-I../../../../simsimd/include \
-I${JAVA_HOME}/include -I${JAVA_HOME}/include/darwin cloud_unum_usearch_Index.cpp -o cloud_unum_usearch_Index.o
g++ -dynamiclib -o libusearch.dylib cloud_unum_usearch_Index.o -lc
Expand Down Expand Up @@ -168,7 +167,7 @@ cmake -B ./build_release -DUSEARCH_BUILD_CLIB=1 && make -C ./build_release -j
Linux:

```sh
g++ -std=c++11 -shared -fPIC c/lib.cpp -I ./include/ -I ./fp16/include/ -I ./robin-map/include/ -o libusearch_c.so
g++ -std=c++11 -shared -fPIC c/lib.cpp -I ./include/ -I ./fp16/include/ -o libusearch_c.so
```


Expand Down
2 changes: 0 additions & 2 deletions include/usearch/index_dense.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#include <usearch/index.hpp>
#include <usearch/index_plugins.hpp>

#include <tsl/robin_set.h>

namespace unum {
namespace usearch {

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ filterwarnings = ["error"]

[tool.cibuildwheel]
test-requires = ["pytest", "numpy"]
test-command = "pytest {project}/python/scripts/test.py"
test-command = "pytest {project}/python/scripts"
build-verbosity = 0
skip = ["*musllinux*", "*i686*", "pp*", "cp36-*"]

Expand Down
1 change: 0 additions & 1 deletion robin-map
Submodule robin-map deleted from 851a59
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"Topic :: Database :: Database Engines/Servers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
include_dirs=["include", "fp16/include", "robin-map/include", "simsimd/include"],
include_dirs=["include", "fp16/include", "simsimd/include"],
ext_modules=ext_modules,
install_requires=[
"numpy",
Expand Down
1 change: 0 additions & 1 deletion wasm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ set(USEARCH_PUNNED_INCLUDE_DIRS
"${CMAKE_CURRENT_SOURCE_DIR}/../c"
"${CMAKE_CURRENT_SOURCE_DIR}/../include"
"${CMAKE_CURRENT_SOURCE_DIR}/../fp16/include"
"${CMAKE_CURRENT_SOURCE_DIR}/../robin-map/include"
)

add_executable(index lib.cpp)
Expand Down

0 comments on commit 89a0b75

Please sign in to comment.