mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
b2b640e24a
commit
e6ad3acb20
@ -19,8 +19,8 @@ QT_DIR = os.environ.get('QT_DIR', 'Q:\\Qt\\4.8.2')
|
|||||||
QT_DLLS = ['Core', 'Gui', 'Network', 'Svg', 'WebKit', 'Xml', 'XmlPatterns']
|
QT_DLLS = ['Core', 'Gui', 'Network', 'Svg', 'WebKit', 'Xml', 'XmlPatterns']
|
||||||
LIBUNRAR = os.environ.get('UNRARDLL', 'C:\\Program Files\\UnrarDLL\\unrar.dll')
|
LIBUNRAR = os.environ.get('UNRARDLL', 'C:\\Program Files\\UnrarDLL\\unrar.dll')
|
||||||
SW = r'C:\cygwin\home\kovid\sw'
|
SW = r'C:\cygwin\home\kovid\sw'
|
||||||
IMAGEMAGICK = os.path.join(SW, 'build', 'ImageMagick-6.7.6',
|
IMAGEMAGICK = os.path.join(SW, 'build',
|
||||||
'VisualMagick', 'bin')
|
'ImageMagick-*\\VisualMagick\\bin')
|
||||||
CRT = r'C:\Microsoft.VC90.CRT'
|
CRT = r'C:\Microsoft.VC90.CRT'
|
||||||
LZMA = r'Q:\easylzma\build\easylzma-0.0.8'
|
LZMA = r'Q:\easylzma\build\easylzma-0.0.8'
|
||||||
|
|
||||||
@ -283,8 +283,9 @@ class Win32Freeze(Command, WixMixIn):
|
|||||||
shutil.copy2(msrc, self.dll_dir)
|
shutil.copy2(msrc, self.dll_dir)
|
||||||
|
|
||||||
# Copy ImageMagick
|
# Copy ImageMagick
|
||||||
|
impath = glob.glob(IMAGEMAGICK)[-1]
|
||||||
for pat in ('*.dll', '*.xml'):
|
for pat in ('*.dll', '*.xml'):
|
||||||
for f in glob.glob(self.j(IMAGEMAGICK, pat)):
|
for f in glob.glob(self.j(impath, pat)):
|
||||||
ok = True
|
ok = True
|
||||||
for ex in ('magick++', 'x11.dll', 'xext.dll'):
|
for ex in ('magick++', 'x11.dll', 'xext.dll'):
|
||||||
if ex in f.lower(): ok = False
|
if ex in f.lower(): ok = False
|
||||||
|
@ -514,7 +514,7 @@ Undefine ProvideDllMain and MAGICKCORE_X11_DELEGATE
|
|||||||
Now open VisualMagick/VisualDynamicMT.sln set to Release
|
Now open VisualMagick/VisualDynamicMT.sln set to Release
|
||||||
Remove the CORE_xlib, UTIL_Imdisplay and CORE_Magick++ projects.
|
Remove the CORE_xlib, UTIL_Imdisplay and CORE_Magick++ projects.
|
||||||
|
|
||||||
F7 for build project, you will get one error due to the removal of xlib, ignore
|
F7 for build solution, you will get one error due to the removal of xlib, ignore
|
||||||
it.
|
it.
|
||||||
|
|
||||||
netifaces
|
netifaces
|
||||||
@ -524,10 +524,10 @@ Download the source tarball from http://alastairs-place.net/projects/netifaces/
|
|||||||
|
|
||||||
Rename netifaces.c to netifaces.cpp and make the same change in setup.py
|
Rename netifaces.c to netifaces.cpp and make the same change in setup.py
|
||||||
|
|
||||||
Run
|
Run::
|
||||||
|
python setup.py build
|
||||||
|
cp `find build/ -name *.pyd` /cygdrive/c/Python27/Lib/site-packages/
|
||||||
|
|
||||||
python setup.py build
|
|
||||||
cp build/lib.win32-2.7/netifaces.pyd /cygdrive/c/Python27/Lib/site-packages/
|
|
||||||
|
|
||||||
psutil
|
psutil
|
||||||
--------
|
--------
|
||||||
|
@ -75,7 +75,11 @@ def test_imaging():
|
|||||||
else:
|
else:
|
||||||
raise RuntimeError('ImageMagick choked!')
|
raise RuntimeError('ImageMagick choked!')
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
import _imaging, _imagingmath, _imagingft
|
try:
|
||||||
|
import _imaging, _imagingmath, _imagingft
|
||||||
|
_imaging, _imagingmath, _imagingft
|
||||||
|
except ImportError:
|
||||||
|
from PIL import _imaging, _imagingmath, _imagingft
|
||||||
_imaging, _imagingmath, _imagingft
|
_imaging, _imagingmath, _imagingft
|
||||||
i = Image.open(cStringIO.StringIO(data))
|
i = Image.open(cStringIO.StringIO(data))
|
||||||
if i.size < (20, 20):
|
if i.size < (20, 20):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user