Skip to content

Commit

Permalink
updated mypack
Browse files Browse the repository at this point in the history
  • Loading branch information
scopatz committed Jun 9, 2014
1 parent 68ab578 commit 546c523
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/mypack/mypack/hoover.pyx
Expand Up @@ -37,7 +37,7 @@ cdef class A:


def __dealloc__(self):
if self._free_inst:
if self._free_inst and self._inst is not NULL:
free(self._inst)

# attributes
Expand Down
4 changes: 4 additions & 0 deletions docs/mypack/setup.py
@@ -1,10 +1,14 @@
import os
import sys
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

import numpy as np

if not os.path.exists('mypack/mypack_extra_types.h'):
sys.exit("please run xdress first!")

incdirs = [os.path.join(os.getcwd(), 'src'), np.get_include()]

ext_modules = [
Expand Down

0 comments on commit 546c523

Please sign in to comment.