On 26 October 2010 11:49, Michael Banck <mba...@debian.org> wrote: > Hi, > > On Fri, Oct 22, 2010 at 10:50:58PM -0400, Geoffrey Hutchison wrote: >> I have posted 2.3.0rc2 to SourceForge: >> http://sourceforge.net/projects/openbabel/files/openbabel-snapshots/2010-10-22/openbabel-2.3.0rc2-20101022-r4251.tar.gz/download >> >> Based on the success of the rc1 snapshot and extensive testing, I >> intend to release 2.3.0 tomorrow night (Pittsburgh time) unless I hear >> some obvious flaw in rc2. > > I did not manage to build the python bindings (I did not try the other > ones). > > In scripts/python, the README says to simply "python setup.py build". > However, if I run that command in that directory, that yields a
That README is obsolete. I will fix it. > Traceback (most recent call last): > File "setup.py", line 26, in <module> > shutil.copyfile(os.path.join(srcdir, "openbabel.py"), > "openbabel.py") > File "/usr/lib/python2.6/shutil.py", line 48, in copyfile > raise Error("`%s` and `%s` are the same file" % (src, dst)) > shutil.Error: `openbabel.py` and `openbabel.py` are the same file > > If I run it from the top source level like "python > scripts/python/setup.py build", I get > > In file included from scripts/python/../../include/openbabel/obutil.h:46, > from scripts/python/openbabel-python.cpp:3018: > scripts/python/../../include/openbabel/rand.h:41: error: expected > constructor, destructor, or type conversion before ‘void’ > > Is this because I have not installed openbabel to /usr yet? I am trying > to build a Debian/Ubuntu package, so this will never be the case. I get > the same error message as above if I run it from the build directory > (but as the python setup.py creates another "build" directory, I guess > this is not the right course of action anyway). > > So how exactly are the python bindings supposed to be built? > > I would say running "mkdir build; cd build; cmake ..; make" should build > the python bindings as well, provided that feature has not been switched > off and the necessary packages are installed. The Python bindings are automatically off. To turn on, use "-DPYTHON_BINDINGS=ON", then "make" will build them. I've updated the documentation on our website (http://openbabel.org/wiki/Install_Python_bindings). > > Michael > > ------------------------------------------------------------------------------ > Nokia and AT&T present the 2010 Calling All Innovators-North America contest > Create new apps & games for the Nokia N8 for consumers in U.S. and Canada > $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing > Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store > http://p.sf.net/sfu/nokia-dev2dev > _______________________________________________ > OpenBabel-discuss mailing list > openbabel-disc...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/openbabel-discuss > ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ OpenBabel-Devel mailing list OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel