Rename async.py modules to async_.py to avoid clash with async keyword
This commit is contained in:
parent
bcd4dc67bb
commit
fcae096bce
|
@ -89,6 +89,8 @@ Requires: python3-tkinter
|
|||
%prep
|
||||
%setup -q -c -n %{srcname}-%{version} -T -a0 -a1
|
||||
|
||||
# Add missing .pxd files
|
||||
# https://github.com/mcfletch/pyopengl/issues/12
|
||||
mkdir %{srcname}-accelerate-%{version}/OpenGL_accelerate
|
||||
cp %{SOURCE2} %{SOURCE3} %{srcname}-accelerate-%{version}/OpenGL_accelerate
|
||||
|
||||
|
@ -96,6 +98,17 @@ cat > %{srcname}-accelerate-%{version}/OpenGL_accelerate/__init__.py <<EOF
|
|||
__version__ = %{version}
|
||||
EOF
|
||||
|
||||
# In Python 3.7 async is a keyword, and so we can't have a module named async
|
||||
# https://github.com/mcfletch/pyopengl/issues/14
|
||||
mv %{srcname}-%{version}/OpenGL/GL/SGIX/async.py \
|
||||
%{srcname}-%{version}/OpenGL/GL/SGIX/async_.py
|
||||
|
||||
mv %{srcname}-%{version}/OpenGL/raw/GL/SGIX/async.py \
|
||||
%{srcname}-%{version}/OpenGL/raw/GL/SGIX/async_.py
|
||||
|
||||
sed -i -e 's/from OpenGL.raw.GL.SGIX.async/from OpenGL.raw.GL.SGIX.async_/g' \
|
||||
%{srcname}-%{version}/OpenGL/GL/SGIX/async_.py
|
||||
|
||||
%build
|
||||
# Delete all Cython generated .c files to force a rebuild
|
||||
pushd %{srcname}-accelerate-%{version}/src
|
||||
|
@ -168,6 +181,7 @@ popd
|
|||
- Force Cython rebuild of c files
|
||||
- Add missing .pxd files from upstream github repository
|
||||
- Update URL to point to github
|
||||
- Rename async.py modules to async_.py to avoid clash with async keyword
|
||||
|
||||
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 3.1.1a1-11
|
||||
- Rebuilt for Python 3.7
|
||||
|
|
Loading…
Reference in New Issue