File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,6 +34,6 @@ def __str__(self) -> str:
3434 patch = property (lambda self : self [2 ])
3535
3636
37- vernum = Version (1 , 2 , 0 )
37+ vernum = Version (1 , 2 , 1 )
3838ver = str (vernum )
3939rev = ''
Original file line number Diff line number Diff line change 1010
1111assert len (sys .argv ) == 2 , 'Argument is required, usage: build.py pip/twine/gource'
1212mode = sys .argv [1 ].strip ()
13- python = 'python3' if not sys .platform == 'win32' else 'py -3.8'
1413
1514if mode == 'pip' :
1615 if os .path .isdir ('dist/' ):
2120 for k in os .listdir ('build' ):
2221 if 'bdist.' in k or k == 'lib' :
2322 os .system (f'rm -rf build/{ k } ' )
24- os .system (f'{ python } setup.py sdist bdist_wheel' )
23+ os .system (f'python setup.py sdist bdist_wheel' )
2524
2625elif mode == 'twine' :
2726 if os .path .isdir ('dist/' ):
28- os .system (f'{ python } -m twine upload dist/*' )
27+ os .system (f'python -m twine upload dist/*' )
2928 else :
3029 raise FileNotFoundError ('Not distribution been found, execute build.py pip' )
3130
You can’t perform that action at this time.
0 commit comments