-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: sketch out source code architecture for apidoc (#48)
- initial commit: add benchpark version -- Benchpark driver needs to be python to import modules. Spack gets around this by having a top-level bash script that calls main.py which has the driver code. Co-authored-by: pearce8 <[email protected]>
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
__version__ = "0.1.0" | ||
benchpark_version = __version__ | ||
|
||
|
||
def __try_int(v): | ||
try: | ||
return int(v) | ||
except ValueError: | ||
return v | ||
|
||
|
||
benchpark_version_info = tuple([__try_int(v) for v in __version__.split(".")]) | ||
|
||
|
||
__all__ = ["benchpark_version_info", "benchpark_version"] | ||
|
@slabasan This line leads to a ModuleNotFoundError