import pycurl

def setup_package():
    print('Testing %s' % pycurl.version)

def setup_package():
    # import here, not globally, so that running
    # python -m tests.appmanager
    # to launch the app manager is possible without having pycurl installed
    # (as the test app does not depend on pycurl)
    import pycurl
    
    print('Testing %s' % pycurl.version)

Make it possible to run test app without pycurl being installed
Make it possible to run test app without pycurl being installed
