Skip to content

Commit

Permalink
Workaround RTD building issue by using cpu version of TensorFlow
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunqi Shao committed Dec 17, 2019
1 parent aef1d8a commit 5c2d8d2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 0 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ formats: []
python:
version: 3.7
install:
- requirements: doc/requirements.txt
- requirements: requirements-dev.txt
- path: .
1 change: 0 additions & 1 deletion doc/requirements.txt

This file was deleted.

9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import os
from setuptools import setup, find_packages

on_rtd = os.environ.get('READTHEDOCS') == 'True'
if on_rtd:
INSTALL_REQUIRES = ['ase', 'numpy', 'pyyaml', 'tensorflow-cpu==1.15']
else:
INSTALL_REQUIRES = ['ase', 'numpy', 'pyyaml', 'tensorflow==1.15']

setup(name='pinn',
version='dev',
description='Pair interaction neural network',
Expand All @@ -8,7 +15,7 @@
author_email='yunqi_shao@yahoo.com',
license='BSD',
packages=find_packages(),
install_requires=['ase', 'numpy', 'pyyaml', 'tensorflow==1.15'],
install_requires=INSTALL_REQUIRES,
entry_points={
'console_scripts': ['pinn_train=pinn.trainer:main']
}
Expand Down

0 comments on commit 5c2d8d2

Please sign in to comment.