Skip to content

Commit

Permalink
Add binaries for Blender 3.1 on Mac M1
Browse files Browse the repository at this point in the history
  • Loading branch information
eliemichel committed Mar 31, 2022
1 parent 5f5e7ea commit 515c54d
Show file tree
Hide file tree
Showing 133 changed files with 34,572 additions and 39 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# this is a package

__version__ = "4.6.3"
__version__ = "4.8.0"


def get_include():
Expand Down
Binary file not shown.
Binary file not shown.
38 changes: 16 additions & 22 deletions blender/LilySurfaceScraper/site-packages/arm/lxml/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
from __future__ import absolute_import

import lxml.etree as ET
_QName = ET.QName

from functools import partial

Expand Down Expand Up @@ -147,34 +148,22 @@ def CLASS(v):

def __init__(self, typemap=None,
namespace=None, nsmap=None, makeelement=None):
if namespace is not None:
self._namespace = '{' + namespace + '}'
else:
self._namespace = None
self._namespace = '{' + namespace + '}' if namespace is not None else None
self._nsmap = dict(nsmap) if nsmap else None

if nsmap:
self._nsmap = dict(nsmap)
else:
self._nsmap = None
assert makeelement is None or callable(makeelement)
self._makeelement = makeelement if makeelement is not None else ET.Element

if makeelement is not None:
assert callable(makeelement)
self._makeelement = makeelement
else:
self._makeelement = ET.Element

# initialize type map for this element factory

if typemap:
typemap = dict(typemap)
else:
typemap = {}
# initialize the default type map functions for this element factory
typemap = dict(typemap) if typemap else {}

def add_text(elem, item):
try:
elem[-1].tail = (elem[-1].tail or "") + item
last_child = elem[-1]
except IndexError:
elem.text = (elem.text or "") + item
else:
last_child.tail = (last_child.tail or "") + item

def add_cdata(elem, cdata):
if elem.text:
Expand All @@ -195,6 +184,7 @@ def add_dict(elem, item):
attrib[k] = v
else:
attrib[k] = typemap[type(v)](None, v)

if dict not in typemap:
typemap[dict] = add_dict

Expand All @@ -203,7 +193,11 @@ def add_dict(elem, item):
def __call__(self, tag, *children, **attrib):
typemap = self._typemap

if self._namespace is not None and tag[0] != '{':
# We'll usually get a 'str', and the compiled type check is very fast.
if not isinstance(tag, str) and isinstance(tag, _QName):
# A QName is explicitly qualified, do not look at self._namespace.
tag = tag.text
elif self._namespace is not None and tag[0] != '{':
tag = self._namespace + tag
elem = self._makeelement(tag, nsmap=self._nsmap)
if attrib:
Expand Down
Binary file not shown.
14 changes: 7 additions & 7 deletions blender/LilySurfaceScraper/site-packages/arm/lxml/etree.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Generated by Cython 0.29.22 */
/* Generated by Cython 0.29.28 */

#ifndef __PYX_HAVE__lxml__etree
#define __PYX_HAVE__lxml__etree
Expand All @@ -13,7 +13,7 @@ struct LxmlElementBase;
struct LxmlElementClassLookup;
struct LxmlFallbackElementClassLookup;

/* "lxml/etree.pyx":322
/* "lxml/etree.pyx":337
*
* # type of a function that steps from node to node
* ctypedef public xmlNode* (*_node_to_node_function)(xmlNode*) # <<<<<<<<<<<<<<
Expand All @@ -22,7 +22,7 @@ struct LxmlFallbackElementClassLookup;
*/
typedef xmlNode *(*_node_to_node_function)(xmlNode *);

/* "lxml/etree.pyx":338
/* "lxml/etree.pyx":353
* @cython.final
* @cython.freelist(8)
* cdef public class _Document [ type LxmlDocumentType, object LxmlDocument ]: # <<<<<<<<<<<<<<
Expand All @@ -38,7 +38,7 @@ struct LxmlDocument {
struct __pyx_obj_4lxml_5etree__BaseParser *_parser;
};

/* "lxml/etree.pyx":687
/* "lxml/etree.pyx":702
*
* @cython.no_gc_clear
* cdef public class _Element [ type LxmlElementType, object LxmlElement ]: # <<<<<<<<<<<<<<
Expand All @@ -52,7 +52,7 @@ struct LxmlElement {
PyObject *_tag;
};

/* "lxml/etree.pyx":1854
/* "lxml/etree.pyx":1869
*
*
* cdef public class _ElementTree [ type LxmlElementTreeType, # <<<<<<<<<<<<<<
Expand All @@ -66,7 +66,7 @@ struct LxmlElementTree {
struct LxmlElement *_context_node;
};

/* "lxml/etree.pyx":2598
/* "lxml/etree.pyx":2613
*
*
* cdef public class _ElementTagMatcher [ object LxmlElementTagMatcher, # <<<<<<<<<<<<<<
Expand All @@ -82,7 +82,7 @@ struct LxmlElementTagMatcher {
char *_name;
};

/* "lxml/etree.pyx":2629
/* "lxml/etree.pyx":2644
* self._name = NULL
*
* cdef public class _ElementIterator(_ElementTagMatcher) [ # <<<<<<<<<<<<<<
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Generated by Cython 0.29.22 */
/* Generated by Cython 0.29.28 */

#ifndef __PYX_HAVE_API__lxml__etree
#define __PYX_HAVE_API__lxml__etree
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
__doc__ = """Legacy interface to the BeautifulSoup HTML parser.
"""

__all__ = ["parse", "convert_tree"]

from .soupparser import convert_tree, parse as _parse

def parse(file, beautifulsoup=None, makeelement=None):
root = _parse(file, beautifulsoup=beautifulsoup, makeelement=makeelement)
return root.getroot()
Loading

0 comments on commit 515c54d

Please sign in to comment.