Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
glpk: no longer require cython for test
Browse files Browse the repository at this point in the history
cython -> c conversion done ahead of time
  • Loading branch information
aebrahim committed Feb 17, 2016
1 parent 3b933f3 commit d5b82cc
Show file tree
Hide file tree
Showing 4 changed files with 2,913 additions and 5 deletions.
6 changes: 5 additions & 1 deletion glpk/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,17 @@ build:

requirements:
build:
- python [win]
- gmp [not win]

run:
- gmp [not win]

test:
files:
- plan.mps
- setup.py
- spam.pyx
- spam.c

commands:
- glpsol --mps plan.mps
Expand Down
6 changes: 2 additions & 4 deletions glpk/setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
from setuptools import setup, Extension
from os import environ

from Cython.Build import cythonize

module = Extension("spam",
sources=["spam.pyx"],
sources=["spam.c"],
include_dirs=[environ.get("LIBRARY_INC", "")],
library_dirs=[environ.get("LIBRARY_LIB", "")],
libraries=["glpk"]
)

setup(name="spam",
test_suite="spam.suite",
ext_modules=cythonize([module]))
ext_modules=[module])
Loading

0 comments on commit d5b82cc

Please sign in to comment.