File tree Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Expand file tree Collapse file tree 3 files changed +23
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ from .ctopy import *
Original file line number Diff line number Diff line change
1
+ from . import ctopy
2
+
3
+ def main ():
4
+ print ("Hello 'pycmtemplate' Module!" )
5
+ print ("This is the main function of the module." )
6
+ print ("You can run this function by calling 'pycmtemplate' module." )
7
+ print ()
8
+ print (ctopy .functionFromCPP ())
9
+ print (ctopy .functionFromCPP2 (1 , 2 ))
10
+ print (ctopy .variableFromCPP )
11
+ print (ctopy .variableFromCPP2 )
12
+
13
+
14
+ if __name__ == '__main__' :
15
+ main ()
Original file line number Diff line number Diff line change 23
23
# Required for .pyi files to be included in the package
24
24
"pycmtemplate" : ["py.typed" ],
25
25
},
26
+ entry_points = {
27
+ # Provide a console script entry point. After pip install run `pycmtemplate` on the command line
28
+ "console_scripts" : [
29
+ "pycmtemplate = pycmtemplate.__main__:main" ,
30
+ ],
31
+ },
26
32
)
You can’t perform that action at this time.
0 commit comments