This package requires python 2.4 or higher. It also requires the libxml2 and libxslt libraries with python bindings.
psyco will be used if present. It gives a ~40% decrease in runtime.
cd /usr/ports/textproc/py-pyx12/ ; make install clean
Install using the Windows EXE installation file (pyx12-1.4.0.win32.exe). The executable scripts are installed by default into %PYTHONDIR%\Scripts\. You may want to add that path to your Windows PATH environment variable.
libxml2/libxslt with python bindings can be downloaded from libxml2
python setup.py install
Optionally, you may pickle the maps. This creates pickled
(serialized) map objects which are loaded in place of the map
parse/object creation process. This can result in a substantial
decrease in startup time. After installation:
x12_build_pkl "path to map files"
x12_build_pkl.py "path to map files"