From 886ad8359eae51a18ee4f3f5f3c3c6b730c0eb8f Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Fri, 27 May 2022 20:05:33 -0400 Subject: [PATCH] use venv instead of virtualenv --- python/install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/install.py b/python/install.py index a71a601c42..03b3366ba6 100644 --- a/python/install.py +++ b/python/install.py @@ -62,10 +62,10 @@ shutil.copy(args.lib,'lammps') # create a virtual environment for building the wheel shutil.rmtree('buildwheel',True) try: - txt = subprocess.check_output([sys.executable, '-m', 'virtualenv', 'buildwheel', '-p', sys.executable], stderr=subprocess.STDOUT, shell=False) + txt = subprocess.check_output([sys.executable, '-m', 'venv', 'buildwheel'], stderr=subprocess.STDOUT, shell=False) print(txt.decode('UTF-8')) except subprocess.CalledProcessError as err: - sys.exit("Failed to create a virtualenv: {0}".format(err.output.decode('UTF-8'))) + sys.exit("Failed to create a virtual environment: {0}".format(err.output.decode('UTF-8'))) # now run the commands to build the wheel. those must be in a separate script # and run in subprocess, since this will use the virtual environment and