Skip to content

Commit

Permalink
Merge branch 'main' into task/2023_08_uberenv_py_and_view_tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrush committed Dec 7, 2023
2 parents 0c801e8 + 0a39ce2 commit 78ca0ac
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions uberenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,10 @@
import socket
import platform
import json
import datetime
import glob
import re
import argparse

from distutils.version import LooseVersion
from functools import partial

from os import environ as env
Expand Down Expand Up @@ -536,12 +534,10 @@ def clone_repo(self):
def patch(self):
""" hot-copy our ports into vcpkg """

import distutils.dir_util

dest_vcpkg_ports = pjoin(self.dest_vcpkg, "ports")

print("[info: copying from {0} to {1}]".format(self.vcpkg_ports_path, dest_vcpkg_ports))
distutils.dir_util.copy_tree(self.vcpkg_ports_path, dest_vcpkg_ports)
shutil.copytree(self.vcpkg_ports_path, dest_vcpkg_ports)


def clean_build(self):
Expand Down Expand Up @@ -676,7 +672,7 @@ def spack_exe(self, use_spack_env = True):
# Returns version of Spack being used
def spack_version(self):
res, out = sexe('{0} --version'.format(self.spack_exe(use_spack_env=False)), ret_output=True)
return LooseVersion(out[:-1])
return out

def check_concretizer_args(self):
cmd = "{0} help install".format(self.spack_exe(use_spack_env=False))
Expand Down

0 comments on commit 78ca0ac

Please sign in to comment.