cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cassandra-dbapi2.apache-extras....@codespot.com
Subject [cassandra-dbapi2] 2 new revisions pushed by pcannon@gmail.com on 2011-11-15 16:23 GMT
Date Tue, 15 Nov 2011 16:23:36 GMT
2 new revisions:

Revision: e916933631f3
Author:   paul cannon <paul@datastax.com>
Date:     Tue Nov 15 07:21:23 2011
Log:      fix marshallers under python2.4
http://code.google.com/a/apache-extras.org/p/cassandra-dbapi2/source/detail?r=e916933631f3

Revision: f557301575d7
Author:   paul cannon <paul@datastax.com>
Date:     Mon Nov 14 14:48:40 2011
Log:      redhat packaging
http://code.google.com/a/apache-extras.org/p/cassandra-dbapi2/source/detail?r=f557301575d7

==============================================================================
Revision: e916933631f3
Author:   paul cannon <paul@datastax.com>
Date:     Tue Nov 15 07:21:23 2011
Log:      fix marshallers under python2.4

http://code.google.com/a/apache-extras.org/p/cassandra-dbapi2/source/detail?r=e916933631f3

Modified:
  /cql/marshal.py

=======================================
--- /cql/marshal.py	Mon Nov  7 12:32:03 2011
+++ /cql/marshal.py	Tue Nov 15 07:21:23 2011
@@ -118,7 +118,7 @@
              return None
          return _float_packer.unpack(bytestr)[0]
  else:
-    def unmarshal_long(bytestr):
+    def unmarshal_float(bytestr):
          if not bytestr:
              return None
          return struct.unpack(">f", bytestr)[0]
@@ -129,7 +129,7 @@
              return None
          return _double_packer.unpack(bytestr)[0]
  else:
-    def unmarshal_long(bytestr):
+    def unmarshal_double(bytestr):
          if not bytestr:
              return None
          return struct.unpack(">d", bytestr)[0]

==============================================================================
Revision: f557301575d7
Author:   paul cannon <paul@datastax.com>
Date:     Mon Nov 14 14:48:40 2011
Log:      redhat packaging

http://code.google.com/a/apache-extras.org/p/cassandra-dbapi2/source/detail?r=f557301575d7

Added:
  /redhat/python26-cql.spec

=======================================
--- /dev/null
+++ /redhat/python26-cql.spec	Mon Nov 14 14:48:40 2011
@@ -0,0 +1,52 @@
+Name:           python26-cql
+Version:        1.0.6
+Release:        1
+Summary:        DB-API 2.0 compliant client library for Cassandra/CQL
+
+Group:          Applications/Databases
+License:        ASL 2.0
+URL:             
http://code.google.com/a/apache-extras.org/p/cassandra-dbapi2/
+Source0:         
http://cassandra-dbapi2.apache-extras.org.codespot.com/files/cql-%{version}.tar.gz
+BuildArch:      noarch
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u}  
-n)
+
+BuildRequires:  python26-devel
+Requires:       python26, python26-thrift
+
+%global __python python2.6
+%global python26_sitelib %(%{__python} -c "from distutils.sysconfig import  
get_python_lib; print(get_python_lib())")
+
+# Turn off the brp-python-bytecompile script, cause in RHEL 5 it only  
believes in python2.4
+%global __os_install_post %(echo '%{__os_install_post}' | sed  
-e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
+
+%description
+CQL is an SQL-like query language for the highly scalable distributed  
database
+Cassandra. This package provides a Python driver for making queries to a
+Cassandra installation using CQL, using the standard Python database API
+("DB-API 2.0").
+
+%prep
+%setup -q -n cql-%{version}
+
+
+%build
+%{__python} setup.py build
+
+
+%install
+rm -rf %{buildroot}
+%{__python} setup.py install -c -O1 --skip-build --root %{buildroot}
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc README CHANGES.txt
+%{python26_sitelib}/cql/
+%{python26_sitelib}/cql*.egg-info
+
+
+%changelog

Mime
View raw message