initial addition of files needed for setup
authorEli Bendersky <eliben@gmail.com>
Thu, 22 Dec 2011 13:53:52 +0000 (15:53 +0200)
committerEli Bendersky <eliben@gmail.com>
Thu, 22 Dec 2011 13:53:52 +0000 (15:53 +0200)
CHANGES [new file with mode: 0644]
MANIFEST.in [new file with mode: 0644]
examples/examine_dwarf_info.py
setup.py [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
new file mode 100644 (file)
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 (file)
index 0000000..9474776
--- /dev/null
@@ -0,0 +1,10 @@
+recursive-include elftools *.py \r
+recursive-include scripts *.py\r
+recursive-include examples *.py *.elf\r
+prune test\r
+include README\r
+include LICENSE\r
+include CHANGES\r
+\r
+\r
+\r
index ba712dd6c2bf18c2c163c5f0b1491be1a165e019..7a2c0344ebeb144e171378e84948bc99444759bb 100644 (file)
@@ -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 (file)
index 0000000..d944624
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,41 @@
+#-------------------------------------------------------------------------------\r
+# pyelftools: setup.py\r
+#\r
+# Setup/installation script.\r
+#\r
+# Eli Bendersky (eliben@gmail.com)\r
+# This code is in the public domain\r
+#-------------------------------------------------------------------------------\r
+import os, sys\r
+from distutils.core import setup\r
+\r
+\r
+try:\r
+    with open('README', 'rt') as readme:\r
+        description = '\n' + readme.read()\r
+except IOError:\r
+    # maybe running setup.py from some other dir\r
+    description = ''\r
+\r
+\r
+setup(\r
+    # metadata\r
+    name='pyelftools',\r
+    description='Library for analyzing ELF files and DWARF debugging information',\r
+    long_description=description,\r
+    license='Public domain',\r
+    version='0.10',\r
+    author='Eli Bendersky',\r
+    maintainer='Eli Bendersky',\r
+    author_email='eliben@gmail.com',\r
+    url='https://bitbucket.org/eliben/pyelftools',\r
+    platforms='Cross Platform',\r
+    classifiers = [\r
+        'Programming Language :: Python :: 2',],\r
+\r
+    packages=['elftools'],\r
+\r
+    scripts=['scripts/readelf.py'],\r
+)\r
+\r
+    \r