Skip to content

Commit

Permalink
Added Py3k support
Browse files Browse the repository at this point in the history
  • Loading branch information
petehunt committed Jul 27, 2011
1 parent 7f7d921 commit 82de560
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README
Expand Up @@ -34,4 +34,8 @@ Installation
# ... or ... # ... or ...
# python setup.py install # python setup.py install


Python 3.0 Support
------------------


Simply run the build-py3k.sh script from the local directory. It will
build a working package in the ./py3k directory.
15 changes: 15 additions & 0 deletions build-py3k.sh
@@ -0,0 +1,15 @@
#!/bin/sh

echo "Building Python 3.0 version in ./py3k..."
rm -fr ./py3k
mkdir py3k
cp -rf pymysql py3k/
cp setup.py py3k/
cp setup.py.py3k.patch py3k/
cp CHANGELOG py3k/
cp README py3k/
cp LICENSE py3k/
cd py3k
2to3 .|patch -p0
patch setup.py setup.py.py3k.patch
cd ..
4 changes: 4 additions & 0 deletions setup.py.py3k.patch
@@ -0,0 +1,4 @@
15c15
< name = "PyMySQL",
---
> name = "PyMySQL3",

0 comments on commit 82de560

Please sign in to comment.