Commits

Ned Batchelder committed 30a604c Draft

Add more instructions, since I really have no idea how it works in some cases.

  • Participants
  • Parent commits b2804f7

Comments (0)

Files changed (1)

 re-packs the tar file using the Python tarfile standard library module to
 give it good permissions.
 
-Use it like this:
+First, install this fixtar package into the Python you use to build source
+kits.  
+
+Then you have to make the fixtar command known to setup.py.  There are a few
+ways to do this.  One is to use "from ez_setup import use_setuptools". 
+Another is to update the project's setup.py:
+
+    try:
+        # For building on Windows, need to fix the tar file after it's made.
+        # Install https://bitbucket.org/ned/fixtar, then this will work.
+        from setuptools_fixtar import fixtar
+    except:
+        extra_options = {}
+    else:
+        extra_options = {
+            'cmdclass': {
+                'fixtar': fixtar.FixtarCommand,
+            }
+        }
+
+    setup(
+        ...
+        **extra_options
+        )
+
+Finally, invoke it like this:
 
     python setup.py sdist --keep-temp --formats=gztar fixtar -oned -gfixtar --clean