-
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.
- Loading branch information
1 parent
fe3ac4f
commit cea16e2
Showing
6 changed files
with
133 additions
and
71 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
0
cmake/modules/PyProject.cmake → cmake/PyProject.cmake
100644 → 100755
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// Created by mohammad on 10/17/24. | ||
// | ||
|
||
#include <nanobind/nanobind.h> | ||
|
||
#include <string> | ||
|
||
#define STRINGIFY(x) #x | ||
#define MACRO_STRINGIFY(x) STRINGIFY(x) | ||
|
||
|
||
NB_MODULE(NB_MODULE_NAME, m) { | ||
#ifdef VERSION_INFO | ||
m.attr("__version__") = MACRO_STRINGIFY(VERSION_INFO); | ||
#else | ||
m.attr("__version__") = "dev"; | ||
#endif | ||
} |
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