Skip to content

Commit 3c32c74

Browse files
author
chrish
committed
Somewhat working wrapper for PPath, so getDataSet is usable. You have to to
edit one .cpp file produced by pyste by hand (as described by the Makefile) for things to compile. Bleah.
1 parent ba18729 commit 3c32c74

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pylearn/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ PYSTE_FILES = $(wildcard *.pyste)
22
CPP_FILES = $(addprefix pylearn/_, $(addsuffix .cpp, $(basename $(PYSTE_FILES))))
33

44
pylearn.so: $(CPP_FILES) | gen_pymake_buildenv gen_main
5+
echo "You have to remove std::string from the list of bases"
6+
echo "from PPath in _base.cpp before this will compile."
57
cd pylearn && pymake -safeopt -so pylearn.cc
68
ln -sf pylearn/libpylearn.so pylearn.so
79
chmod -x pylearn.so

pylearn/base.pyste

+4
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ p_object = Class('PLearn::Object', 'plearn/base/Object.h')
1212
exclude_stuff(p_object, 'deepCopy')
1313
set_our_policy(p_object)
1414

15+
p_path = Class('PLearn::PPath', 'plearn/io/PPath.h')
16+
exclude_stuff(p_path)
17+
for op in ('/', '/=', '==', '!='):
18+
exclude(p_path.operator[op])
1519

1620
# Useful global functions
1721

0 commit comments

Comments
 (0)