timedata-org / old-timedata

Time arts data - high-performance color processing in C++ and Python.
7 stars 3 forks source link

"limited install" target for testing .so functionality with a test script. #4

Closed rec closed 8 years ago

rec commented 8 years ago

Right now, we have pure C++ unit tests (not enough of them but more to come of course) as part of our build.

What I also do is test from the Python end that generated .so, the binary Python extension, actually works. I have a very minimal test script here which I could easily expand into Python unit tests - except if I use the install target to setup.py then it installs this yet-to-be tested binary into my Python path!

Right now I cheat, by having a symbolic link from the build directory that I haven't checked in which makes it all work.

We need to resolve this and then write some actual unit tests and demonstrations in Python.

rec commented 8 years ago

We have this in setup.py, though it needs to be refined to work outside my machine. :-D