Skip to content

Commit

Permalink
adding install_package.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bigmb committed Feb 11, 2023
1 parent 264f03b commit bc107c4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 7 deletions.
18 changes: 18 additions & 0 deletions install_package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env python3.9

import os
import subprocess
file = '/home/malav/mb_pandas'

#subprocess.run(["cd",file]), check=True, stdout=subprocess.PIPE).stdout
os.system('cd ' + file)

if os.path.exists(file+'/dist'):
os.system('rm -rf '+file+'/dist')
os.system('rm -rf '+file+'/build')
#subprocess.run(["ls"]),check=True, stdout=subprocess.PIPE).stdout
os.system("ls")
subprocess.run(["git", "pull"], check=True, stdout=subprocess.PIPE).stdout
#os.system('git pull')
os.system('python3.9 -m setup bdist_wheel')
os.system('python3.9 -m pip install '+file + '/dist/' +os.listdir(file +'/dist')[-1])
14 changes: 7 additions & 7 deletions mb_pandas/src/version.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
VERSION_YEAR = 2022
VERSION_MONTH = int('11')
VERSION_DAY = int('28')
VERSION_HOUR = int('18')
VERSION_MINUTE = int('31')
VERSION_YEAR = 2023
VERSION_MONTH = int('02')
VERSION_DAY = int('11')
VERSION_HOUR = int('22')
VERSION_MINUTE = int('34')
MAJOR_VERSION = 1
MINOR_VERSION = 0
PATCH_VERSION = 202211281831
version_date = '2022/11/28 18:31'
PATCH_VERSION = 202302112234
version_date = '2023/02/11 22:34'
version = '{}.{}.{}'.format(MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION)
__all__ = ['MAJOR_VERSION', 'MINOR_VERSION', 'PATCH_VERSION', 'version_date', 'version']
Expand Down

0 comments on commit bc107c4

Please sign in to comment.