Closed ShubhamKJha closed 4 years ago
thank you for simplifying for review. I think this looks good, only a minor thing: it looks like the "Running benchmarks for a selection of commits" section is duplicated now?
Hi @bjodah how about this python script
from __future__ import absolute_import
import os
from shutil import copy
try:
from shutil import which as is_available
except ImportError:
# for Python 2
from distutils.spawn import find_executable as is_available
target = 'asv.conf.json'
#target = os.path.join(target)
if is_available('conda') is not None:
config_file = 'asv.conf.conda.json'
else:
config_file = 'asv.conf.venv.json'
#config_file = os.path.join(config_file)
try:
copy(config_file, target)
print("Success")
except:
print("Error")
This would set the asv.conf.json
(default config file) according to the environment. It will allow users to use asv
commands directly.
Closing this due to #57 being merged.
Updated README.rst file to include instructions for running benchmarks locally.