Commits

illume committed 5a4c102

Added some more install things and a basic example for sqlitepickle.

Comments (0)

Files changed (5)

+#fake Makefile for pywebsite, to support the common
+# ./configure;make;make install
+
+PYTHON = python
+
+#build: Setup setup.py
+build: setup.py
+	$(PYTHON) setup.py build
+
+#install: Setup setup.py
+install: setup.py
+	$(PYTHON) setup.py install
+
+#Setup:
+#	$(PYTHON) configure.py
+
+check tests:
+	$(PYTHON) run_tests.py
+
+#docs:	install
+#	cd docs/utils
+#	$(PYTHON) makedocs.py
+
+clean:
+	rm -rf build dist
+	rm -f lib/*~ src/*~ test/*~
+

trunk/buildout.cfg

 [buildout]
-parts = py
+parts = python
 #parts = py test
 develop =
     .
 #recipe = zc.recipe.testrunner
 #eggs = pywebsite
 
-#[py]
-#recipe = zc.recipe.egg:script
-#interpreter = py
-#eggs = pywebsite
+[python]
+recipe = zc.recipe.egg:script
+interpreter = python
+eggs = pywebsite
+#fake configure for pywebsite, to support the common
+# ./configure;make;make install
+
+#python config.py -auto

trunk/examples/sqlitepickle.py

+from pywebsite import sqlitepickle
+
+db = sqlitepickle.SQLPickle()
+
+db.save('some key', dict(a=2))
+print db.get('some key')
+
+
+
+
+
+

trunk/install.txt

+
+
+python setup.py install
+
+buildout support is not currently working for some reason
+