ponty / pysimavr

python wrapper for simavr which is AVR and arduino simulator
GNU General Public License v3.0
49 stars 14 forks source link

Building pysimavr #4

Closed lagra closed 10 years ago

lagra commented 12 years ago

Hi,

pysimavr is a realy great idea. But i wondered, if the simavr sources realy needs to be included. Is there a way to use a allready installed version of simavr? I am using a modified archlinux packge of simavr that installs libsimavr.so and all needed headers to the system. Would it be possible to use the installed shared library and the system-headers instead of including all this stuff into pysimavr to build the python-extensions using swig?

ponty commented 12 years ago

It would be possible to create a pure python wrapper library using ctypes, but I don't plan it because simavr binary distribution is very limited (only archlinux?)

Read also #1

lagra commented 12 years ago

Its really sad, that there are no packages available in distribution repos. I think simavr should ship with a makefile that makes it easy to package simavr (intall target or something like this). I am working on full featured arch-package that includes all the stuff like headers and shared-library. I think it would be really cool to have a python-wrapper for libsimavr that could be build against the installed shared-library. If i have some free time, i would try to build pysimavr against my instlalled version of libsimavr.