Skip to content

Commit

Permalink
Support ReadTheDocs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Apr 14, 2017
1 parent 42f5f4c commit 78067ee
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
2 changes: 2 additions & 0 deletions readthedocs-conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dependencies:
- gmp
5 changes: 5 additions & 0 deletions readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
conda:
file: readthedocs-conda.yml
python:
version: 2.7
pip_install: true
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ Cython
pytest
cysignals
flake8
git+https://github.com/jdemeyer/sphinx
17 changes: 13 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from distutils.core import setup
from distutils.extension import Extension
import Cython.Build

import os
import subprocess
import sys

# When building with readthedocs, install the requirements too
# See https://github.com/rtfd/readthedocs.org/issues/2776
if "READTHEDOCS" in os.environ:
reqs = "requirements.txt"
if os.path.isfile(reqs):
subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", reqs])

from distutils.core import setup
from distutils.extension import Extension
import Cython.Build

from copy import copy


Expand Down Expand Up @@ -123,7 +132,7 @@
ext_modules=Cython.Build.cythonize(extensions,
include_path=["src"],
build_dir=cythonize_dir,
compiler_directives={'embedsignature': True}),
compiler_directives={'binding': True}),
package_dir={"": "src"},
packages=["fpylll", "fpylll.gmp", "fpylll.fplll", "fpylll.algorithms", "fpylll.tools"],
license='GNU General Public License, version 2 or later',
Expand Down

0 comments on commit 78067ee

Please sign in to comment.