From 40545e97fc69080986d661bb551a69e98b2afb17 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Thu, 22 Dec 2011 15:53:52 +0200 Subject: [PATCH] initial addition of files needed for setup --- CHANGES | 5 +++++ MANIFEST.in | 10 +++++++++ examples/examine_dwarf_info.py | 2 +- setup.py | 41 ++++++++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 CHANGES create mode 100644 MANIFEST.in create mode 100644 setup.py diff --git a/CHANGES b/CHANGES new file mode 100644 index 0000000..e2109e8 --- /dev/null +++ b/CHANGES @@ -0,0 +1,5 @@ +Changelog +========= + ++ Version 0.10 - Initial public release (??.??.2011) + diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..9474776 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,10 @@ +recursive-include elftools *.py +recursive-include scripts *.py +recursive-include examples *.py *.elf +prune test +include README +include LICENSE +include CHANGES + + + diff --git a/examples/examine_dwarf_info.py b/examples/examine_dwarf_info.py index ba712dd..7a2c034 100644 --- a/examples/examine_dwarf_info.py +++ b/examples/examine_dwarf_info.py @@ -41,7 +41,7 @@ def process_file(filename): # values. Values are represented by AttributeValue objects in # elftools/dwarf/die.py # We're interested in the DW_AT_name attribute. Note that its value - # is usually a string taken from the .debug_string section. This + # is usually a string taken from the .debug_str section. This # is done transparently by the library, and such a value will be # simply given as a string. name_attr = top_DIE.attributes['DW_AT_name'] diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..d944624 --- /dev/null +++ b/setup.py @@ -0,0 +1,41 @@ +#------------------------------------------------------------------------------- +# pyelftools: setup.py +# +# Setup/installation script. +# +# Eli Bendersky (eliben@gmail.com) +# This code is in the public domain +#------------------------------------------------------------------------------- +import os, sys +from distutils.core import setup + + +try: + with open('README', 'rt') as readme: + description = '\n' + readme.read() +except IOError: + # maybe running setup.py from some other dir + description = '' + + +setup( + # metadata + name='pyelftools', + description='Library for analyzing ELF files and DWARF debugging information', + long_description=description, + license='Public domain', + version='0.10', + author='Eli Bendersky', + maintainer='Eli Bendersky', + author_email='eliben@gmail.com', + url='https://bitbucket.org/eliben/pyelftools', + platforms='Cross Platform', + classifiers = [ + 'Programming Language :: Python :: 2',], + + packages=['elftools'], + + scripts=['scripts/readelf.py'], +) + + -- 2.30.2