Commit 0f1a5eb3 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #277 from Hinogary/master

some minor changes
parents 2793297b b6549951
......@@ -291,6 +291,8 @@ class build_ext(_build_ext.build_ext):
for source in cython_sources:
target = cython_targets[source]
depends = [source] + list(extension.depends or ())
if(source[-4:].lower()==".pyx" and os.path.isfile(source[:-3]+"pxd")):
depends += [source[:-3]+"pxd"]
rebuild = self.force or newer_group(depends, target, 'newer')
if not rebuild and newest_dependency is not None:
rebuild = newer(newest_dependency, target)
......
......@@ -77,4 +77,4 @@ cdef extern from "stdio.h" nogil:
int fputc (int c, FILE *stream)
int putc (int c, FILE *stream)
size_t getline(char **lineptr, size_t *n, FILE *stream)
......@@ -70,3 +70,7 @@ cdef extern from "<vector>" namespace "std":
void resize(size_t, T&) nogil
size_t size() nogil
void swap(vector&) nogil
#C++0x methods
T* data() nogil
void shrink_to_fit()
......@@ -132,6 +132,7 @@ The ``cdef`` statement is used to make C level declarations for:
cdef struct Grail:
int age
float volume
..note Struct can be ``packed``, which have same effect as C directive ``#pragma pack(1)``.
:Unions:
......
#!/usr/bin/env python
try:
from setuptools import setup, Extension
except ImportError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment