Skip to content

Commit

Permalink
Setup sub project for message_infrastructure (#305)
Browse files Browse the repository at this point in the history
* setup sub-project message-infrastructure
* install pybind11 by poetry

Signed-off-by: luoxiaoc <[email protected]>
  • Loading branch information
killight98 committed Aug 12, 2022
1 parent d41e412 commit 5ca249f
Show file tree
Hide file tree
Showing 9 changed files with 393 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "docs"]
path = docs
url = https://github.com/lava-nc/lava-docs.git
[submodule "src/lava/magma/runtime/message_infrastructure/pybind11"]
path = src/lava/magma/runtime/message_infrastructure/pybind11
url = https://github.com/pybind/pybind11.git
49 changes: 48 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ networkx = "<=2.8"
nbformat = "^5.3.0"
nbconvert = "^6.5.0"
pandas = "^1.4.2"
message-infrastructure = {path = "src/lava/magma/runtime/message_infrastructure"}

[tool.poetry.dev-dependencies]
bandit = "1.7.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ file (GLOB MULTI_PROC_SRCS "message_infrastructure/csrc/multiprocessing.cc")

file (GLOB PY_WRAPPER "message_infrastructure/csrc/message_infrastructure_py_wrapper.cc")

add_subdirectory(pybind11)
find_package(pybind11 CONFIG)

add_library(multi_processing SHARED ${MULTI_PROC_SRCS})

Expand Down
Empty file.
184 changes: 184 additions & 0 deletions src/lava/magma/runtime/message_infrastructure/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/lava/magma/runtime/message_infrastructure/pybind11
Submodule pybind11 deleted from ba5ccd
20 changes: 20 additions & 0 deletions src/lava/magma/runtime/message_infrastructure/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[tool.poetry]
name = "message_infrastructure"
version = "0.1.0"
description = "Message Infrastructure"
authors = ["Intel's Neuromorphic Computing Lab and the open source community <[email protected]>"]
license = "BSD-3-Clause or LGPL-2.1-or-later"

[tool.poetry.dependencies]
python = "^3.8"
pybind11 = {extras = ["global"], version = "^2.10.0"}

[tool.poetry.dev-dependencies]
pytest = "^5.2"

[tool.poetry.build]
script = "setup.py"

[build-system]
requires = ["poetry-core>=1.0.0", "setuptools>=42", "wheel", "cmake>=3.12"]
build-backend = "poetry.core.masonry.api"
Loading

0 comments on commit 5ca249f

Please sign in to comment.