Skip to content

Instantly share code, notes, and snippets.

@mcepl
Created October 20, 2017 22:38
Show Gist options
  • Save mcepl/1f192ce67490582d559479d5964fb648 to your computer and use it in GitHub Desktop.
Save mcepl/1f192ce67490582d559479d5964fb648 to your computer and use it in GitHub Desktop.
Attempt to make mcedit2 building on RHEL-7
--- a/src/mcedit2/rendering/modelmesh.pyx
+++ b/src/mcedit2/rendering/modelmesh.pyx
@@ -33,8 +33,8 @@ for i, (r, g, b) in enumerate(lRedstoneP
redstonePowerColors[i*4+2] = r * 255
redstonePowerColors[i*4+3] = 255
-cdef unsigned char * foliageBitsPine = [0x61, 0x99, 0x61, 0xFF]; # BGRA
-cdef unsigned char * foliageBitsBirch = [0x55, 0xA7, 0x80, 0xFF]; # BGRA
+cdef unsigned char * foliageBitsPine = b'\x61\x99\x61\xFF' # BGRA
+cdef unsigned char * foliageBitsBirch = b'\x55\xA7\x80\xFF' # BGRA
class BlockModelMesh(object):
renderstate = renderstates.RenderstateAlphaTest
--- a/setup_mceditlib.py
+++ b/setup_mceditlib.py
@@ -50,7 +50,7 @@ setup(name='mceditlib',
author_email='codewarrior0@gmail.com',
url='https://github.com/mcedit/mcedit2',
license='MIT License',
- packages=find_packages('src', include=["mceditlib*"]),
+ packages=find_packages('src/mceditlib*'),
package_data={'mceditlib': ['blocktypes/*.json', 'anvil/biomes.csv']},
package_dir={'': 'src'},
ext_modules=mceditlib_ext_modules,
--- a/setup_mcedit2.py
+++ b/setup_mcedit2.py
@@ -57,7 +57,7 @@ setup(name='mcedit2',
author_email='codewarrior0@gmail.com',
url='https://github.com/mcedit/mcedit2',
license='MIT License',
- packages=find_packages('src', include=["mcedit2*",]),
+ packages=find_packages('src/mcedit2'),
package_dir={'': 'src'},
ext_modules=mcedit2_ext_modules,
include_dirs=include_dirs,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment