Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
Add basic setup.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
thewtex committed Nov 2, 2011
1 parent 35cde2f commit d1ceba8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/ReplicatePythonSourceTree.cmake
@@ -1,4 +1,4 @@
# Note: when executed in the build dir, then CMAKE_CURRENT_SOURCE_DIR is the
# build dir.
file( COPY src test DESTINATION "${CMAKE_ARGV3}"
file( COPY setup.py src test DESTINATION "${CMAKE_ARGV3}"
FILES_MATCHING PATTERN "*.py" )
17 changes: 17 additions & 0 deletions setup.py
@@ -0,0 +1,17 @@
from setuptools import setup
from distutils.sysconfig import get_python_lib
import glob


setup(
name = "cythoncmakeexample",
package_dir = {'': 'src'},
data_files = [(get_python_lib(), glob.glob('src/*.so'))],
author = 'Matt McCormick',
description = 'Use the CMake build system to make Cython modules.',
license = 'Apache',
keywords = 'cmake cython build',
url = 'http://github.com/thewtex/cython-cmake-example',
test_require = ['nose'],
zip_safe = False,
)

0 comments on commit d1ceba8

Please sign in to comment.