- `from __future__ import print_function`
- replace deprecated `unittest.TestCase.assertEquals` with
`assertEqual`, `assertTrue`, or `assertFalse`
- use `obj is None` instead of `obj == None`
- remove modules and functions that are imported but not used
This commit contains a few minor changes to the Python setup.py file that is used for independent installation of the Python bindings.
- Version bumped to 2.4.0 to match the main Open Babel version.
- The custom install command sublcass was fixed to just call the superclass install method after the extra build_ext command. This resolved an issue with running bdist_wheel.
- `zip_safe` changed to `False`, so running `python setup.py install` behaviour is more like `pip install openbabel`.
distutils/setuptools now appear to add some default SWIG `include_dirs` and `library_dirs`, so we should append the openbabel paths to these lists rather than overwriting them entirely.
- Remove the duplicate swig interface files from the `python` directory.
- Remove the rule specifying those files from `MANIFEST.in`.
- Modify `setup.py` to pull in the interface files from the parent directory when preparing the distrubution using `sdist`.
- Add the rule `exclude openbabel.py` to `MANIFEST.in`, to help prevent accidentally including a copy of the resulting swig bindings in the source distribution.
- Bump the python bindings version number to 1.8.2 to allow these changes to be pushed to PyPI.
Change the python bindings package name back to 'openbabel', but make clear in the Python README that this is just the python bindings, not the main Open Babel library, just in case anyone stumbles across the PyPI page by accident.
Add a sensible fallback if pkg-config fails to locate the Open Babel include and library directories, and a helpful error message if that fallback also fails.
Allow Open Babel include and library directories to be manually specified as command line options to setup.py using the build_ext command with -I and -L options.
The setup.py build and install commands run a number of subcommands, including build_ext, which runs SWIG to generate openbabel.py, and build_py, which copies openbabel.py and other python sources to the build directory.
The default ordering is for build_py to be run before build_ext, causing errors as build_py attempts to copy openbabel.py before it exists. This change ensures build_ext is always run first at the start of both the build and install commands.
https://openbabel.svn.sourceforge.net/svnroot/openbabel/openbabel/branches/openbabel-2-2-x
........
r3071 | baoilleach | 2009-06-18 11:08:17 +0200 (Thu, 18 Jun 2009) | 1 line
bump python scripting to 1.5
........
r3073 | ghutchis | 2009-06-19 21:17:13 +0200 (Fri, 19 Jun 2009) | 2 lines
Fix typo in FOR_RINGS_OF_MOL macro.
........
r3074 | ghutchis | 2009-06-19 23:09:34 +0200 (Fri, 19 Jun 2009) | 6 lines
* src/kekulize.cpp (expandcycle): Fix PR#2705497. Kekulize has
problems with fused aromatic rings joined by a non-aromatic
ring. Make sure when expanding aromatic cycles that we only accept
atoms which are in the *same* ring from OBMol::GetSSSR().
........
r3075 | ghutchis | 2009-06-20 00:27:22 +0200 (Sat, 20 Jun 2009) | 2 lines
Fix for PR#1814248.
........
r3076 | ghutchis | 2009-06-20 14:51:29 +0200 (Sat, 20 Jun 2009) | 6 lines
* src/kekulize.cpp (expandcycle): Rewritten as cleaner recursive
function. Look for largest possible aromatic cycle. Fixes more
bugs, but still has issues with "figure 8" ring systems,
e.g. c12n(nnn1)cccc2.
........
r3077 | ghutchis | 2009-06-20 14:51:51 +0200 (Sat, 20 Jun 2009) | 3 lines
* test/*: Update with recent changes.
........
r3078 | ghutchis | 2009-06-20 16:57:32 +0200 (Sat, 20 Jun 2009) | 5 lines
* src/kekulize.cpp (expandcycle): Rewritten as cleaner recursive
function. Look for largest possible aromatic cycle, including
handling fused "figure 8" ring systems.
........
r3079 | ghutchis | 2009-06-20 16:57:45 +0200 (Sat, 20 Jun 2009) | 3 lines
* test/*: Update with recent changes.
........
r3080 | ghutchis | 2009-06-20 17:16:47 +0200 (Sat, 20 Jun 2009) | 2 lines
More fixes -- use Noel's atom precidence. Fixes problems with azole rings with pyrrole vs. pyridynyl atoms.
........
* scripts/openbabel-python.i: Updated SWIG interface file to ignore 21 methods of each std::vector created. This should substantially reduce the size of the wrapper code