Skip to content

Commit

Permalink
Merge pull request #5 from martinjankoehler/poetry-fixes
Browse files Browse the repository at this point in the history
Python poetry build process fixes
  • Loading branch information
martinjankoehler authored Dec 5, 2024
2 parents ed69a90 + 999830c commit ac2646f
Show file tree
Hide file tree
Showing 6 changed files with 838 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Project Artifacts
testdata/designs/**/*.cir
output_*

# Mac
.DS_Store

Expand Down Expand Up @@ -167,3 +171,4 @@ cython_debug/
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protobuf_generate(

#_____________________________________________________________________________________________

set(PROTOBUF_PYTHON_GENERATED "${CMAKE_CURRENT_LIST_DIR}/build/python")
set(PROTOBUF_PYTHON_GENERATED "${CMAKE_CURRENT_LIST_DIR}/build/python_kpex_protobuf")
file(MAKE_DIRECTORY "${PROTOBUF_PYTHON_GENERATED}")

protobuf_generate(
Expand Down
6 changes: 5 additions & 1 deletion kpex/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
from .kpex_cli import KpexCLI
import sys

if __name__ == '__main__':
def main():
cli = KpexCLI()
cli.main(sys.argv)

if __name__ == '__main__':
main()

Loading

0 comments on commit ac2646f

Please sign in to comment.