You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 line
575 B

  1. # this is a package
  2. __version__ = "4.7.1"
  3. def get_include():
  4. """
  5. Returns a list of header include paths (for lxml itself, libxml2
  6. and libxslt) needed to compile C code against lxml if it was built
  7. with statically linked libraries.
  8. """
  9. import os
  10. lxml_path = __path__[0]
  11. include_path = os.path.join(lxml_path, 'includes')
  12. includes = [include_path, lxml_path]
  13. for name in os.listdir(include_path):
  14. path = os.path.join(include_path, name)
  15. if os.path.isdir(path):
  16. includes.append(path)
  17. return includes