Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Replace Git Submodule with Meson WrapDB
Browse files Browse the repository at this point in the history
for the convenience of switching branches.
  • Loading branch information
minghongx committed May 15, 2023
1 parent b03eefa commit 62ceb45
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "JetBot",
"name": "AMR",

"build": {
"dockerfile": "./Dockerfile",
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Meson subprojects
/subprojects/*
!/subprojects/*.wrap

nohup.out

# Byte-compiled / optimized / DLL files
Expand Down
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"files.exclude": {
"ext/": true,
"subprojects/": true,
"**/__pycache__/": true,
},

Expand Down
1 change: 0 additions & 1 deletion ext/pybind11
Submodule pybind11 deleted from be97c5
5 changes: 1 addition & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,8 @@ inc = include_directories('inc')
py = import('python').find_installation('python3.10')

# https://mesonbuild.com/Wrapdb-projects.html
# https://github.com/scipy/scipy/blob/main/scipy/meson.build#L93-L119
# https://github.com/mesonbuild/meson/issues/4677
pybind11 = declare_dependency(
include_directories : include_directories('../ext/pybind11/include'),
)
pybind11 = dependency('pybind11')

subdir('nodes')
subdir('pywrapcc')
Expand Down
13 changes: 13 additions & 0 deletions subprojects/pybind11.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[wrap-file]
directory = pybind11-2.10.4
source_url = https://github.com/pybind/pybind11/archive/refs/tags/v2.10.4.tar.gz
source_filename = pybind11-2.10.4.tar.gz
source_hash = 832e2f309c57da9c1e6d4542dedd34b24e4192ecb4d62f6f4866a737454c9970
patch_filename = pybind11_2.10.4-1_patch.zip
patch_url = https://wrapdb.mesonbuild.com/v2/pybind11_2.10.4-1/get_patch
patch_hash = 9489d0cdc1244078a3108c52b4591a6f07f3dc30ca7299d3a3c42b84fa763396
source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/pybind11_2.10.4-1/pybind11-2.10.4.tar.gz
wrapdb_version = 2.10.4-1

[provide]
pybind11 = pybind11_dep

0 comments on commit 62ceb45

Please sign in to comment.