sympy / sympy_benchmarks

Some benchmarks of SymPy
14 stars 32 forks source link

Updated README.rst file #58

Closed ShubhamKJha closed 4 years ago

ShubhamKJha commented 5 years ago

Updated README.rst file to include instructions for running benchmarks locally.

bjodah commented 5 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?

ShubhamKJha commented 5 years ago

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.

ShubhamKJha commented 4 years ago

Closing this due to #57 being merged.