We did some initial tests a few months back but I need to revisit it again as we shall wrap (rough) Heston code in Python.Any tips how to write a simple `setup.py` for the binary .pyd file?
import os, sys
from distutils.core import setup, Extension
from distutils import sysconfig
cpp_args = ['-std=c++11', '-stdlib=libc++', '-mmacosx-version-min=10.7']
sfc_module = Extension(
'PybindDLL', sources = ['module.cpp'],
include_dirs=['pybind11/include'],
language='c++',
extra_compile_args = cpp_args,
)
setup(
name = 'PybindDLL',
version = '1.0',
description = 'Python package with superfastcode2 C++ extension (PyBind11)',
ext_modules = [sfc_module],
)
from setuptools import setup, find_packages
setup(
name="PyML",
version="0.1",
packages=find_packages(),
include_package_data=True,
zip_safe=False,
package_data={"PyML": ["PyML.pyd", "ML.dll"]}
"Thanks a lot. It is helpful.I'm building the .pyd file in Visual Studio.
This terrein is like being the in the Empty Quarter!
How's it going here? we would like to test it.I'll post the code some time soon. It will be Open Source.