Commits

Hideo Hattori committed a6b2be1

release to 0.0.2

Comments (0)

Files changed (3)

 all:
 	cd $(SRC_DIR) && make
 	g++ $(LIBS) \
-		-fPIC -shared -o _pgmagick.so $(SRC_DIR)/*.o
+		-fPIC -shared -o pgmagick/_pgmagick.so $(SRC_DIR)/*.o
 
 
 TEST_DIR=test
 .PHONY: test
 test:
-	python -c "import pgmagick"
-	python -c "from pgmagick import *"
 	python $(TEST_DIR)/test_pgmagick_blob.py
 	python $(TEST_DIR)/test_pgmagick_color.py
 	python $(TEST_DIR)/test_pgmagick_image.py
 profile_4:
 	cd example && sh profile.sh
 
+pypireg:
+	python setup.py register
+	python setup.py sdist upload
+
 clean:
-	rm _pgmagick.so
+	rm -rf pgmagick.* build dist
+	rm pgmagick/_pgmagick.so
 	rm $(SRC_DIR)/*.o
 
     $ pip install pgmagick
 
+Require
+=======
+
+required on Ubuntu::
+
+    $ apt-get install libgraphicsmagick++-dev
+    $ apt-get install libboost-python1.40-dev
+
 Usage
 =====
 
-example:
+example::
 
     >>> from pgmagick import Image, FilterTypes
     >>> im = Image('input.jpg')
 library_dirs = ['/usr/lib']
 
 setup(name='pgmagick',
-    version="0.0.1",
+    version="0.0.2",
     description="Yet Another Python wrapper for GraphicsMagick++",
     long_description=open('README.rst').read(),
     author='Hideo Hattori',