From 3f7f4fe5a5d7f1203960605324e1781ba0f248ed Mon Sep 17 00:00:00 2001 From: "yusuke.shinyama.dummy" Date: Sat, 16 May 2009 06:57:26 +0000 Subject: [PATCH] setup.py added git-svn-id: https://pdfminerr.googlecode.com/svn/trunk/pdfminer@105 1aa58f4a-7d42-0410-adbc-911cccaed67c --- Makefile | 3 +++ pdfminer/pdfparser.py | 3 ++- setup.py | 12 ++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 setup.py diff --git a/Makefile b/Makefile index 1024671..c09b472 100644 --- a/Makefile +++ b/Makefile @@ -14,6 +14,9 @@ CONV_CMAP=$(PYTHON) -m tools.conv_cmap all: +install: + $(PYTHON) setup.py install + clean: -rm -rf build -cd $(PACKAGE) && make clean diff --git a/pdfminer/pdfparser.py b/pdfminer/pdfparser.py index 9167cb3..9020192 100644 --- a/pdfminer/pdfparser.py +++ b/pdfminer/pdfparser.py @@ -204,7 +204,8 @@ class PDFXRefStream(PDFBaseXRef): ## ## A PDFPage object is nothing more than a bunch of keys and values ## that describe the properties of the page and point to its contents, -## and has nothing to do with a real graphical entity. +## and has nothing to do with a real graphical entity. For a real graphical +## object, look at layout.LTPage. ## class PDFPage(object): diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..3ea37f9 --- /dev/null +++ b/setup.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python +from distutils.core import setup + +setup(name='pdfminer', + version='20090330', + description='PDF parser and analyzer', + license='MIT/X', + author='Yusuke Shinyama', + url='http://www.unixuser.org/~euske/python/pdfminer/index.html', + packages=['pdfminer'], + scripts=['tools/pdf2txt.py', 'tools/dumppdf.py'], + )