Menu

Installing PyMatch

Assaf Romm

Important: PyMatch requires Python 2.5+ and numpy.

Compiling from source

1) Put all the C source files (.c,.h) in one directory, as well as setup.py

2) In a shell/terminal go to that directory and enter the command:

python setup.py build

Note: you might get some warnings (those are fine) and some errors (those you need to deal with). A common error is not having a compiler in your environment. I suggest copying the error you get to google and searching for how to add the compiler to your environment (this will probably be problematic mostly for Windows users, who also must have some kind of compiler, such as Visual Studio, available).

3) The binary (.pyd for Windows, .so for unix/linux/mac) will be created in a subdirectory called /build/lib-something. Copy the binary from there together with the file pymatch.py, and you should be good to go.

Using pre-compiled binaries

Under "Files" you will find some pre-compiled modules (.py file + another file which is the C compiled binary) for several settings. Copy both of them. Make sure you select the correct environment.

In case of trouble: please contact Assaf Romm via email with the word "PyMatch" in the title


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.