Skip to content

Commit

Permalink
Use cyfunctions (binding=True)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Apr 13, 2017
1 parent 76ba955 commit 17aaef1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
1 change: 0 additions & 1 deletion readthedocs-conda.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
dependencies:
- autoconf
- automake
- cython
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
setuptools>=33.0.0
setuptools
Cython
Sphinx
git+https://github.com/jdemeyer/sphinx
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-

import os
import sys

# When building with readthedocs, install the requirements too
if "READTHEDOCS" in os.environ:
from subprocess import check_call
check_call([sys.executable, "-m", "pip", "install", "-r", "requirements.txt"])

from setuptools import setup
from distutils.command.build import build as _build
from distutils.command.build_py import build_py as _build_py
Expand All @@ -12,7 +20,6 @@
import warnings
warnings.simplefilter("always")

import os
from glob import glob

opj = os.path.join
Expand Down Expand Up @@ -84,7 +91,9 @@ def run(self):

def cythonize(self, extensions):
return cythonize(extensions,
build_dir=cythonize_dir, include_path=["src", os.path.join(cythonize_dir, "src")])
build_dir=cythonize_dir,
include_path=["src", os.path.join(cythonize_dir, "src")],
compiler_directives=dict(binding=True))

def create_init_pxd(self):
"""
Expand Down

0 comments on commit 17aaef1

Please sign in to comment.