[DiscordArchive] How does your setup.py look now?
[DiscordArchive] How does your setup.py look now?
Archived author: Deleted User • Posted: 2018-05-17T13:08:20.398000+00:00
Original source
How does your setup.py look now?
![[Image: Screen_Shot_2018-05-17_at_4.08.20_PM.png...b018fe65f&]](https://cdn.discordapp.com/attachments/408013572430626817/446660326771916800/Screen_Shot_2018-05-17_at_4.08.20_PM.png?ex=690c9dd8&is=690b4c58&hm=a961ed388a0c2be1ab347ccb962b9b2151b4e2cef0bea7af7671f0cb018fe65f&)
Archived author: Skarn • Posted: 2018-05-17T13:08:40.594000+00:00
Original source
![[Image: Screen_Shot_2018-05-17_at_4.08.20_PM.png...b018fe65f&]](https://cdn.discordapp.com/attachments/408013572430626817/446660326771916800/Screen_Shot_2018-05-17_at_4.08.20_PM.png?ex=690c9dd8&is=690b4c58&hm=a961ed388a0c2be1ab347ccb962b9b2151b4e2cef0bea7af7671f0cb018fe65f&)
Archived author: Skarn • Posted: 2018-05-17T13:08:52.296000+00:00
Original source
```py
from distutils.core import setup, Extension
from Cython.Build import cythonize
setup(
name='BLP To PNG Converter',
ext_modules=cythonize(Extension(
"BLP2PNG",
sources=[
"blp.pyx",
"native/BlpConvert.cpp",
"native/ByteStream.cpp",
# LIBPNG
"native/libpng/png.c",
"native/libpng/pngerror.c",
"native/libpng/pngget.c",
"native/libpng/pngmem.c",
"native/libpng/pngpread.c",
"native/libpng/pngread.c",
"native/libpng/pngrio.c",
"native/libpng/pngrtran.c",
"native/libpng/pngrutil.c",
"native/libpng/pngset.c",
"native/libpng/pngtrans.c",
"native/libpng/pngwio.c",
"native/libpng/pngwrite.c",
"native/libpng/pngwtran.c",
"native/libpng/pngwutil.c",
# ZLIB
"native/zlib/adler32.c",
"native/zlib/compress.c",
"native/zlib/crc32.c",
"native/zlib/deflate.c",
"native/zlib/gzclose.c",
"native/zlib/gzlib.c",
"native/zlib/gzread.c",
"native/zlib/gzwrite.c",
"native/zlib/infback.c",
"native/zlib/inffast.c",
"native/zlib/inflate.c",
"native/zlib/inftrees.c",
"native/zlib/trees.c",
"native/zlib/uncompr.c",
"native/zlib/zutil.c"
],
include_dirs=["native/pngpp", "native/libpng", "native/zlib"],
language="c++",
extra_compile_args=["-std=c++11", "-stdlib=libc++", "-mmacosx-version-min=10.7"]
)),
requires=['Cython']
)
```
Archived author: Deleted User • Posted: 2018-05-17T13:09:07.474000+00:00
Original source
Yea that’s kinda sorta good
Archived author: Deleted User • Posted: 2018-05-17T13:09:25.349000+00:00
Original source
But pngpp uses a function that looks different on each system
Archived author: schlumpf • Posted: 2018-05-17T13:09:26.086000+00:00
Original source
that other error actually is a real one
Archived author: schlumpf • Posted: 2018-05-17T13:10:11.012000+00:00
Original source
(that compiling would be hig hly bad)
Archived author: Deleted User • Posted: 2018-05-17T13:10:21.594000+00:00
Original source
The line 112 of error.hoo in pngpp needs to be changed
Archived author: Deleted User • Posted: 2018-05-17T13:10:35.203000+00:00
Original source
It compiles almost ebeywhere
Archived author: schlumpf • Posted: 2018-05-17T13:11:27.837000+00:00
Original source
that#s bad then