Skip to content

Commit

Permalink
Run cython from Makefile, not setup.py
Browse files Browse the repository at this point in the history
Avoiding Cython in setup.py allows distribution of the package without
depending on Cython.
  • Loading branch information
wbolster committed Nov 4, 2012
1 parent 1bc4969 commit 66028d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.PHONY: all clean test

all:
cython --cplus leveldb.pyx
python setup.py build_ext --inplace --force

clean:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from setuptools import setup
from Cython.Build import cythonize
from setuptools.extension import Extension

setup(name="leveldb-cython",
version="0.1",
author="Wouter Bolsterlee",
author_email="uws@xs4all.nl",
ext_modules=cythonize("leveldb.pyx"),
ext_modules = [Extension("leveldb", ["leveldb.cpp"])]
)

0 comments on commit 66028d8

Please sign in to comment.