1. Victor Stinner
  2. python-ptrace

Commits

Victor Stinner  committed a7ed38f

setup.py: add bdist_wheel command to the release procedure

  • Participants
  • Parent commits f1f7372
  • Branches default

Comments (0)

Files changed (2)

File INSTALL

View file
  • Ignore whitespace
 cptrace
 =======
 
-For faster debug, you can also install cptrace: Python binding of the ptrace()
-function written in C: ::
+For faster debug and to avoid ctypes, you can also install cptrace: Python
+binding of the ptrace() function written in C: ::
 
-    ./setup_cptrace.py install
+    python setup_cptrace.py install
 

File setup.py

View file
  • Ignore whitespace
 
 # Produce to release a new version:
 #  - ./test_doc.py
-#  - test gdb.py
-#  - test strace.py
+#  - run tests (test_gdb.py and test_strace.py) with Python 2 and Python 3
 #  - check version in ptrace/version.py
 #  - set release date in the ChangeLog
 #  - hg ci
 #  - hg tag python-ptrace-x.y
 #  - hg ci
 #  - hg push
-#  - ./setup.py sdist register upload
+#  - ./setup.py sdist register bdist_wheel upload
 #  - update the website home page (url, md5 and news)
 #    https://bitbucket.org/haypo/python-ptrace/wiki/Home
 #  - set version to n+1 (ptrace/version.py)
 from imp import load_source
 from os import path
 from sys import argv
-from distutils.core import setup
+try:
+    # setuptools supports bdist_wheel
+    from setuptools import setup, Extension
+except ImportError:
+    from distutils.core import setup
 
 ptrace = load_source("version", path.join("ptrace", "version.py"))
 PACKAGES = {}