diff --git a/.travis.yml b/.travis.yml index 1753b15463..02b91909d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,16 @@ language: python python: "3.6" +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-4.8 + - g++-4.8 env: + global: + - CC=gcc-4.8 + - CXX=g++-4.8 matrix: - TENSORFLOW_VERSION=1.8 - TENSORFLOW_VERSION=1.12 diff --git a/setup.py b/setup.py index fb7cbf986b..27e7dc1f44 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ # install_requires = ['xml'] install_requires=['numpy', 'scipy'] -setup_requires=['setuptools-git-version'] +setup_requires=['setuptools_scm'] # add cmake as a build requirement if cmake>3.0 is not installed try: @@ -38,7 +38,7 @@ setup( name="deepmd-kit", setup_requires=setup_requires, - version_format='{tag}.dev{commitcount}_{gitsha}', + use_scm_version={'write_to': 'source/train/_version.py'}, author="Han Wang", author_email="wang_han@iapcm.ac.cn", description="A deep learning package for many-body potential energy representation and molecular dynamics",