clean up makefile, config (#18517)

Added target for createversiondirs (shell script) in Makefile.

updates for tagged release

regenerate api ref, rm Makefile_temp

add parens to pip check
This commit is contained in:
Karen Bradshaw
2020-01-30 19:40:20 -05:00
committed by GitHub
parent f5e63a268c
commit 694815d454
5 changed files with 88 additions and 217 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ import tempfile
error_msgs = []
# pip should be installed when Python is installed, but just in case...
if not shutil.which('pip'):
if not (shutil.which('pip') or shutil.which('pip3')):
error_msgs.append("Install pip so you can install PyYAML. https://pip.pypa.io/en/stable/installing")
reqs = subprocess.check_output([sys.executable, '-m', 'pip', 'freeze'])
@@ -184,9 +184,9 @@ def main():
# second parse input argument
k8s_release = in_args.k8s_release
print("ks8_release is {}".format(k8s_release))
print("k8s_release is {}".format(k8s_release))
curr_dir = os.path.dirname(__file__)
curr_dir = os.path.dirname(os.path.abspath(__file__))
print("curr_dir {}".format(curr_dir))
root_dir = os.path.realpath(os.path.join(curr_dir, '..'))
print("root_dir {}".format(root_dir))