Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-17-2009, 04:36 PM   #16
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by itimpi View Post
On a slightly different issue - do you know if there are any tools that allow python debugging to be done from the Visual Studio 2008 IDE? I am extremely familiar with that IDE so would prefer to use it if I could. If not I will have to continue to use the Eclipse IDE I have installed as an alternative.
You can use IronPython. I think there when you install it you get VS IDE support for it.

BOb
pilotbob is offline   Reply With Quote
Old 01-17-2009, 04:47 PM   #17
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,380
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
'Fraid I've never used Visual Studio, so can't really help with that.
kovidgoyal is offline   Reply With Quote
Advert
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,380
Karma: 27230406
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
Old 01-17-2009, 05:25 PM   #19
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
That appears to work fine. I had to manually create the pictureflow.pyd.manifest file as it was missing - but that I can handle

Both the 'build' and 'develop' phases have now completed without error.
itimpi is offline   Reply With Quote
Old 01-17-2009, 06:39 PM   #20
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
here is the patch to setup.py to use the INCLUDE environment variable if set, and otherwise use your old preset values:

Code:
@@ -412,11 +412,16 @@
                                   )
                  ]
     if iswindows:
+        sEnvInclude = os.environ.get('INCLUDE')
+        if sEnvInclude is None :
+            linclude_dirs=['C:/WinDDK/6001.18001/inc/api/',
+                          'C:/WinDDK/6001.18001/inc/crt/']
+        else:
+            linclude_dirs = sEnvInclude.split(';')
         ext_modules.append(Extension('calibre.plugins.winutil',
                 sources=['src/calibre/utils/windows/winutil.c'],
                 libraries=['shell32', 'setupapi'],
-                include_dirs=['C:/WinDDK/6001.18001/inc/api/',
-                              'C:/WinDDK/6001.18001/inc/crt/'],
+                include_dirs=linclude_dirs,
                 extra_compile_args=['/X']
                 ))
     if isosx:
Please feel free to recode more elegantly (which I am sure is possible).
itimpi is offline   Reply With Quote
Advert
Old 01-17-2009, 07:15 PM   #21
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,380
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Added, thanks.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-505 FSK Test-Environment for Autorun Applications under MS-Windows Mark Nord Sony Reader Dev Corner 608 04-16-2012 02:35 AM
What is your ideal writing environment? rudykerkhoven Writers' Corner 32 10-22-2010 04:17 PM
Installing dev environment bran iRex Developer's Corner 13 09-28-2010 05:43 PM
setup development environment JeffElkins Calibre 21 10-22-2008 03:25 PM
What is your favorite reading environment? mogui Lounge 16 11-06-2007 08:50 AM


All times are GMT -4. The time now is 05:03 AM.


MobileRead.com is a privately owned, operated and funded community.