GithubHelp home page GithubHelp logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
2.6 is easy I think. I´ll investigate the others.

Original comment by [email protected] on 13 Aug 2011 at 3:39

  • Changed state: Accepted

from py-leveldb.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
Just committed changes to support Python 2.4, 2.5 and 2.6. Will attempt 
3.0/3.1/3.2 later, and leaving the issue open until then.

Original comment by [email protected] on 15 Aug 2011 at 9:08

from py-leveldb.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
[deleted comment]

from py-leveldb.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
Not working for python 2.4 since it lookis Py_ssize_t only get defined after 
python 2.5.

$ python setup.py build       
running build
running build_py
package init file '__init__.py' not found (or not a regular file)
package init file '__init__.py' not found (or not a regular file)
running build_ext
building 'leveldb' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall 
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector 
--param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fPIC 
-I/usr/include/python2.4 -c leveldb_ext.cc -o 
build/temp.linux-x86_64-2.4/leveldb_ext.o -I./leveldb-read-only/include -fPIC 
-Wall -g2 -D_GNU_SOURCE -O2 -DNDEBUG
leveldb_ext.h:39: error: '˜Py_ssize_t' does not name a type
leveldb_ext.h:42: error: 'Py_ssize_t' does not name a type
error: command 'gcc' failed with exit status 1


the patch below worked...on Linux version 2.6.18-128.7.1.el5(gcc version 4.1.2)
$ svn diff
Index: leveldb_ext.h
===================================================================
--- leveldb_ext.h       (revision 38)
+++ leveldb_ext.h       (working copy)
@@ -26,6 +26,10 @@
 PyObject* leveldb_repair_db(PyObject* o, PyObject* args);
 PyObject* leveldb_destroy_db(PyObject* o, PyObject* args);

+#if (PY_VERSION_HEX < 0x02050000) 
+typedef size_t Py_ssize_t ;
+#endif
+
 typedef struct {
        PyObject_HEAD

Original comment by [email protected] on 20 Dec 2011 at 6:56

from py-leveldb.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
My bad. There was a regression. Should be working fine now.

Original comment by [email protected] on 20 Dec 2011 at 10:22

  • Changed state: Fixed

from py-leveldb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.