[osgeo4w-dev] [osgeo4w] #357: python 2.7.4 dll conflicts
OSGeo4W
trac_osgeo4w at osgeo.org
Sat Apr 27 00:14:31 PDT 2013
#357: python 2.7.4 dll conflicts
-------------------+--------------------------------------------------------
Reporter: maphew | Owner: osgeo4w-dev@…
Type: defect | Status: new
Priority: major | Component: Package
Version: | Keywords: python
-------------------+--------------------------------------------------------
Comment(by maphew):
I'm ok with changing the executable extension order, +1 from me, if what
follows isn't acceptable:
I'd really like to find a reliable way to strip the Windows system
directory from the DLL search path, but after much reading and searching
it does look as if this isn't possible. The only other alternative I've
found* is to put move the .dll next to the .exe, in `apps\qgis\bin`, as
opposed to the current solution of putting the .exe with the .dll in
`bin`.
* http://stackoverflow.com/questions/16245757/python-not-search-windows-
system32-for-pythonxx-dll
If we created hardlinks it needn't waste disk space, though only for NTFS.
Here's how it might be implemented in `etc\postinstall\qgis.bat`:
{{{
:: for NTFS
mklink /h apps\qgis\bin\python27.dll bin\python27.dll
:: for FAT
if not exist apps\qgis\bin\python27.dll ^
copy bin\python27.dll apps\qgis\bin\python27.dll
}}}
--
Ticket URL: <http://trac.osgeo.org/osgeo4w/ticket/357#comment:6>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
More information about the osgeo4w-dev
mailing list