Ticket #6831: portmap-setup.patch

File portmap-setup.patch, 580 bytes (added by Jean-Paul Calderone, 7 years ago)

check for Python.h before allowing portmap compilation to be attempted

  • twisted/runner/topfiles/setup.py

     
    1111extensions = [
    1212    Extension("twisted.runner.portmap",
    1313              ["twisted/runner/portmap.c"],
    14               condition=lambda builder: builder._check_header("rpc/rpc.h")),
     14              condition=lambda builder:
     15                  builder._check_header("rpc/rpc.h") and builder._check_header("Python.h")),
    1516]
    1617
    1718if __name__ == '__main__':