View Single Post
Old 01-17-2009, 04:57 PM   #18
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,484
Karma: 28005164
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Here's a patch to fix it

Code:
=== modified file 'setup.py'
--- setup.py    2009-01-03 17:27:55 +0000
+++ setup.py    2009-01-17 21:43:59 +0000
@@ -425,7 +425,11 @@
                 extra_link_args=['-framework', 'IOKit'])
                            )

-    plugins = ['plugins/%s.so'%(x.name.rpartition('.')[-1]) for x in ext_modules]
+    if not iswindows:
+        plugins = ['plugins/%s.so'%(x.name.rpartition('.')[-1]) for x in ext_modules]
+    else:
+        plugins = ['plugins/%s.pyd'%(x.name.rpartition('.')[-1]) for x in ext_modules] 

     setup(
           name           = APPNAME,
EDIT: Use the second patch below
Code:
=== modified file 'setup.py'
--- setup.py    2009-01-03 17:27:55 +0000
+++ setup.py    2009-01-17 21:59:35 +0000
@@ -425,7 +425,11 @@
                 extra_link_args=['-framework', 'IOKit'])
                            )

-    plugins = ['plugins/%s.so'%(x.name.rpartition('.')[-1]) for x in ext_modules]
+    if not iswindows:
+        plugins = ['plugins/%s.so'%(x.name.rpartition('.')[-1]) for x in ext_modules]
+    else:
+        plugins = ['plugins/%s.pyd'%(x.name.rpartition('.')[-1]) for x in ext_modules] + \
+                  ['plugins/%s.pyd.manifest'%(x.name.rpartition('.')[-1]) for x in ext_modules if 'pictureflow' not in x.name]

     setup(
           name           = APPNAME,

Last edited by kovidgoyal; 01-17-2009 at 05:04 PM.
kovidgoyal is offline   Reply With Quote