|
|
#16 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
|
Quote:
BOb |
|
|
|
|
|
|
#17 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,628
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
'Fraid I've never used Visual Studio, so can't really help with that.
|
|
|
|
| Advert | |
|
|
|
|
#18 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,628
Karma: 28549046
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,
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 06:04 PM. |
|
|
|
|
|
#19 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#20 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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:
|
|
|
|
| Advert | |
|
|
|
|
#21 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,628
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Added, thanks.
|
|
|
|
![]() |
|
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 03:35 AM |
| What is your ideal writing environment? | rudykerkhoven | Writers' Corner | 32 | 10-22-2010 05:17 PM |
| Installing dev environment | bran | iRex Developer's Corner | 13 | 09-28-2010 06:43 PM |
| setup development environment | JeffElkins | Calibre | 21 | 10-22-2008 04:25 PM |
| What is your favorite reading environment? | mogui | Lounge | 16 | 11-06-2007 09:50 AM |