From: Eli Bendersky Date: Fri, 23 Dec 2011 07:42:37 +0000 (+0200) Subject: fixed setup script to include internal packages as well, and removed ^M from README X-Git-Tag: v0.10~12 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e56c5be648b4ac51dcb6d252d11f286f744e4a76;p=pyelftools.git fixed setup script to include internal packages as well, and removed ^M from README --- diff --git a/README b/README index c276339..a66aa28 100644 --- a/README +++ b/README @@ -1,43 +1,43 @@ -Introduction: what is pyelftools? ---------------------------------- - -**pyelftools** is a pure-Python library for parsing and analyzing ELF files -and DWARF debugging information. See the -`User's guide `_ for more details. - -Pre-requisites --------------- - -As a user of **pyelftools**, one only needs Python to run. It works with -Python versions 2.6 and 2.7 (Python 3 support is planned). For hacking -on **pyelftools** the requirements are a bit more strict, please see the -`hacking guide `_. - -Installing ----------- - -When you unzip the source distribution, run:: - - > python setup.py install - -Alternatively, **pyelftools** can be installed from PyPI (Python package -index):: - - > pip install pyelftools - -How to use it? --------------- - -**pyelftools** is a regular Python library: you import and invoke it from your -own code. For a detailed usage guide and links to examples, please consult the -`user's guide `_. - -License -------- - -**pyelftools** is open source software. Its code is in the public domain. See -the ``LICENSE`` file for more details. - - - - +Introduction: what is pyelftools? +--------------------------------- + +**pyelftools** is a pure-Python library for parsing and analyzing ELF files +and DWARF debugging information. See the +`User's guide `_ for more details. + +Pre-requisites +-------------- + +As a user of **pyelftools**, one only needs Python to run. It works with +Python versions 2.6 and 2.7 (Python 3 support is planned). For hacking +on **pyelftools** the requirements are a bit more strict, please see the +`hacking guide `_. + +Installing +---------- + +When you unzip the source distribution, run:: + + > python setup.py install + +Alternatively, **pyelftools** can be installed from PyPI (Python package +index):: + + > pip install pyelftools + +How to use it? +-------------- + +**pyelftools** is a regular Python library: you import and invoke it from your +own code. For a detailed usage guide and links to examples, please consult the +`user's guide `_. + +License +------- + +**pyelftools** is open source software. Its code is in the public domain. See +the ``LICENSE`` file for more details. + + + + diff --git a/TODO b/TODO index 8030c90..969daaa 100644 --- a/TODO +++ b/TODO @@ -18,11 +18,12 @@ Preparing a new release * Make sure new version was updated everywhere appropriate * Packaging done on Linux * Run ``python setup.py build sdist`` (no 'upload' yet) -* Untar the created ``dist/pyelftools-x.y.tar.gz`` and make sure everything looks ok +* Untar the created ``dist/pyelftools-x.y.tar.gz`` and make sure + everything looks ok * Create a virtual env for Python 2: (``virtualenv -p /usr/bin/python2 ~/test/venv/ZZZ``) * Use that virtual env executable to install the source tarball -* Run some examples and see they work +* Run some examples with the venv and see they work, and run the test suite * Now build with upload to send it to PyPi * Test with pip install from some new virtualenv * If everything is OK, upload the distribution to BitBucket as well diff --git a/setup.py b/setup.py index d944624..843c72d 100644 --- a/setup.py +++ b/setup.py @@ -33,7 +33,13 @@ setup( classifiers = [ 'Programming Language :: Python :: 2',], - packages=['elftools'], + packages=[ + 'elftools', + 'elftools.elf', + 'elftools.common', + 'elftools.dwarf', + 'elftools.construct', 'elftools.construct.lib', + ], scripts=['scripts/readelf.py'], )