Skip to content

Commit

Permalink
cleanup + compile C module only
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Fekete committed Nov 6, 2019
1 parent fe31799 commit f2b3c55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ cache: pip

# command to install dependencies
install:
- pip install -r requirements.txt
- pip install -e .

# command to run tests
Expand All @@ -18,7 +17,6 @@ jobs:
include:
- stage: documentation
install:
- pip install -r requirements.txt
- pip install -e .
- pip install sphinx sphinx-rtd-theme
script:
Expand Down
3 changes: 0 additions & 3 deletions requirements.txt

This file was deleted.

15 changes: 6 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
from setuptools import find_packages
from numpy.distutils.core import setup, Extension
from setuptools import find_packages, setup, Extension
import numpy

tricube_cpp_module = Extension(
'mff.interpolation.tricube_cpp._tricube',
sources=["mff/interpolation/tricube_cpp/tricube_module.c", "mff/interpolation/tricube_cpp/_tricube.c"],
)

tricube_fortran_module = Extension(
'mff.interpolation.tricube_fortran._tricube',
sources=['mff/interpolation/tricube_fortran/_tricube.pyf', 'mff/interpolation/tricube_fortran/_tricube.c'],
include_dirs=[numpy.get_include()]
)

with open("README.md", "r") as fh:
long_description = fh.read()

setup(
name='mff',
version='0.2.0',
version='0.2.1',
author='Claudio Zeni, Adam Fekete, Aldo Glielmo',
author_email='[email protected]',
description='Gaussian process regression to extract non-parametric 2- and 3- body force fields.',
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/kcl-tscm/mff",
packages=find_packages(),
ext_modules=[tricube_cpp_module, tricube_fortran_module],
ext_modules=[tricube_cpp_module],
python_requires='>=3.6',
install_requires=[
'numpy',
'asap3',
Expand Down

0 comments on commit f2b3c55

Please sign in to comment.