code stringlengths 3 6.57k |
|---|
sys.platform.startswith('win') |
missing(file) |
os.access(file, os.R_OK) |
dlls (expected in ROOT/bin) |
os.path.join(ROOT,'bin',dll) |
os.path.exists("libxmlmods") |
os.mkdir("libxmlmods") |
open("libxmlmods/__init__.py","w") |
close() |
altImport(s) |
s.replace("import libxml2mod","from libxmlmods import libxml2mod") |
s.replace("import libxsltmod","from libxmlmods import libxsltmod") |
sys.platform.startswith('win') |
os.path.join(ROOT,'include') |
missing(dir + "/libxml2/libxml/tree.h") |
print("failed to find headers for libxml2: update includes_dir") |
sys.exit(1) |
missing(dir + "/iconv.h") |
print("failed to find headers for libiconv: update includes_dir") |
sys.exit(1) |
os.path.join(ROOT,'lib') |
missing("libxml2-py.c") |
missing("libxml2.py") |
print("failed to find and generate stubs for libxml2, aborting ...") |
print(sys.exc_info() |
sys.exc_info() |
sys.exit(1) |
open("libxml.py", "r") |
open("libxml2class.py", "r") |
open("libxml2.py", "w") |
head.readlines() |
result.write(altImport(line) |
result.write(line) |
generated.readlines() |
result.write(line) |
head.close() |
generated.close() |
result.close() |
missing("libxslt-py.c") |
missing("libxslt.py") |
missing("xsltgenerator.py") |
missing("libxslt-api.xml") |
print("libxslt stub generator not found, libxslt not built") |
print("failed to generate stubs for libxslt, aborting ...") |
print(sys.exc_info() |
sys.exc_info() |
open("libxsl.py", "r") |
open("libxsltclass.py", "r") |
open("libxslt.py", "w") |
head.readlines() |
result.write(altImport(line) |
result.write(line) |
generated.readlines() |
result.write(line) |
head.close() |
generated.close() |
result.close() |
missing(dir + "/libxslt/xsltconfig.h") |
print("failed to find headers for libxslt: update includes_dir") |
modules.append('libxmlmods.__init__') |
macros.append(('_REENTRANT','1') |
sys.platform.startswith('win') |
macros.append(('MERGED_MODULES', '1') |
libs.insert(0, libraryPrefix + 'exslt') |
libs.insert(0, libraryPrefix + 'xslt') |
includes.append(xslt_includes) |
modules.append('libxslt') |
missing("MANIFEST") |
open("MANIFEST", "w") |
manifest.write("setup.py\n") |
manifest.write(file + "\n") |
manifest.write(file + "\n") |
manifest.close() |
sys.exit(0) |
Clause (FreeBSD) |
Copyright (c) |
function (see below) |
targets (optional) |
vector (of length ns) |
vector (of length ns) |
vector (of length ns) |
vector (of length ns) |
vector (of length ns) |
the (approximate) |
Copyright (c) |
Copyright (c) |
Copyright (c) |
GP(object) |
__init__(self) |
super(GP, self) |
__init__() |
the (approximate) |
targets (optional) |
vector (of length ns) |
vector (of length ns) |
vector (of length ns) |
vector (of length ns) |
vector (of length ns) |
logging.getLogger(__name__) |
__str__(self) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.