Ticket #5104: 5104-cimport-dep.patch

File 5104-cimport-dep.patch, 822 bytes (added by Robert Bradshaw, 14 years ago)
  • setup.py

    # HG changeset patch
    # User Robert Bradshaw <robertwb@math.washington.edu>
    # Date 1233093615 28800
    # Node ID 56897b5f346424cc40e44ad561307a48a12178d6
    # Parent  d1b86cfee04be7d338d9aed9badbd2e9da022a23
    Trac #5104, regex for cimport dependancy to aggressive
    
    diff -r d1b86cfee04b -r 56897b5f3464 setup.py
    a b  
    225225
    226226# matches any dependency
    227227import re
    228 dep_regex = re.compile(r'^ *(?:(?:cimport +([\S ,]+))|(?:from +(\S+) *cimport)|(?:include *[\'"]([^\'"]+)[\'"])|(?:cdef *extern *from *[\'"]([^\'"]+)[\'"]))', re.M)
     228dep_regex = re.compile(r'^ *(?:(?:cimport +([\w\. ,]+))|(?:from +(\w+) +cimport)|(?:include *[\'"]([^\'"]+)[\'"])|(?:cdef *extern *from *[\'"]([^\'"]+)[\'"]))', re.M)
    229229
    230230class DependencyTree:
    231231    """