python-db.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. Index: psycopg2-2.0b8/psycopg/config.h
  2. --- psycopg2-2.0b8/psycopg/config.h.orig 2006-02-11 19:56:19 +0100
  3. +++ psycopg2-2.0b8/psycopg/config.h 2006-03-07 21:54:38 +0100
  4. @@ -104,10 +104,11 @@
  5. #if defined(__FreeBSD__) || defined(_WIN32) || defined(__sun__)
  6. /* what's this, we have no round function either? */
  7. -static double round(double num)
  8. +static double my_round(double num)
  9. {
  10. return (num >= 0) ? floor(num + 0.5) : ceil(num - 0.5);
  11. }
  12. +#define round(num) my_round(num)
  13. #endif
  14. /* postgresql < 7.4 does not have PQfreemem */
  15. Index: psycopg2-2.0b8/setup.py
  16. --- psycopg2-2.0b8/setup.py.orig 2006-02-11 19:58:38 +0100
  17. +++ psycopg2-2.0b8/setup.py 2006-03-07 21:54:38 +0100
  18. @@ -143,6 +143,9 @@
  19. self.include_dirs.append(".")
  20. self.libraries.append("pq")
  21. + self.libraries.append("ssl")
  22. + self.libraries.append("crypto")
  23. + self.libraries.append("crypt")
  24. try:
  25. self.library_dirs.append(self.get_pg_config("libdir"))
  26. Index: pysqlite-2.1.3/setup.py
  27. --- pysqlite-2.1.3/setup.py.orig 2006-02-02 01:15:04 +0100
  28. +++ pysqlite-2.1.3/setup.py 2006-03-07 21:55:19 +0100
  29. @@ -23,10 +23,11 @@
  30. import glob, os, sys
  31. -from ez_setup import use_setuptools
  32. -use_setuptools()
  33. +#from ez_setup import use_setuptools
  34. +#use_setuptools()
  35. -from setuptools import setup, Extension, Command
  36. +#from setuptools import setup, Extension, Command
  37. +from distutils.core import setup, Extension, Command
  38. # If you need to change anything, it should be enough to change setup.cfg.
  39. @@ -115,9 +116,7 @@
  40. platforms = "ALL",
  41. url = "http://pysqlite.org/",
  42. download_url = "http://initd.org/tracker/pysqlite/wiki/PysqliteDownloads",
  43. - test_suite = "pysqlite2.test.suite",
  44. cmdclass = {"build_docs": DocBuilder},
  45. - extras_require = {"build_docs": ["docutils", "SilverCity"]},
  46. # Description of the modules and packages in the distribution
  47. package_dir = {"pysqlite2": "pysqlite2"},