find . -name "*.so"
./fwdpy/fwdpy.cpython-34m.so
./fwdpy/fwdpyio/fwdpyio.cpython-34m.so
./fwdpy/libseq/libseq.cpython-34m.so
./fwdpy/internal/internal.cpython-34m.so
With python 2, the cpython-XXm bit is gone.
Here's a minimal example:
In foo.pyx:
def test():
return 1
In setup.py
from distutils.core import setup, Extension
from Cython.Build import cythonize
import platform, glob, sys
extensions=[Extension("foo",sources=["foo.pyx"])]
setup(name="foo",
ext_modules=cythonize(extensions))
And the output on my system:
kevin@:~/tmp/cython$ ls -lhrt
total 80K
-rw-rw-r-- 1 kevin kevin 25 Oct 12 14:39 foo.pyx
-rw-rw-r-- 1 kevin kevin 66K Oct 12 14:39 foo.c
-rw-rw-r-- 1 kevin kevin 217 Oct 12 14:41 setup.py
drwxrwxr-x 4 kevin kevin 4.0K Oct 12 14:42 build
kevin@:~/tmp/cython$ python setup.py build_ext -i
running build_ext
building 'foo' extension
[STUFF DELETED]
$ ls -lhrt
total 120K
-rw-rw-r-- 1 kevin kevin 25 Oct 12 14:39 foo.pyx
-rw-rw-r-- 1 kevin kevin 66K Oct 12 14:39 foo.c
-rw-rw-r-- 1 kevin kevin 217 Oct 12 14:41 setup.py
drwxrwxr-x 4 kevin kevin 4.0K Oct 12 14:42 build
-rwxrwxr-x 1 kevin kevin 37K Oct 12 14:43 foo.so
kevin@:~/tmp/cython$ alias python=python3
kevin@:~/tmp/cython$ python setup.py build_ext -i
running build_ext
building 'foo' extension
[STUFF DELETED]
$ !ls
ls -lhrt
total 160K
-rw-rw-r-- 1 kevin kevin 25 Oct 12 14:39 foo.pyx
-rw-rw-r-- 1 kevin kevin 66K Oct 12 14:39 foo.c
-rw-rw-r-- 1 kevin kevin 217 Oct 12 14:41 setup.py
drwxrwxr-x 4 kevin kevin 4.0K Oct 12 14:42 build
-rwxrwxr-x 1 kevin kevin 37K Oct 12 14:43 foo.so
-rwxrwxr-x 1 kevin kevin 40K Oct 12 14:43 foo.cpython-34m.so
Is this expected, or something to do with my system?
Thanks,
Kevin