Discussion:
[Community] New way of installing GEOS DLLs for Shapely
Sean Gillies
2012-12-08 17:29:46 UTC
Permalink
Can anybody take a look at this change to setup.py?

https://github.com/sgillies/shapely/commit/755f0673de10ca1faa29b1b751d38b1dd8c9378b
https://github.com/Toblerity/Shapely/issues/37
--
Sean Gillies
Howard Butler
2012-12-10 14:54:45 UTC
Permalink
Post by Sean Gillies
Can anybody take a look at this change to setup.py?
https://github.com/sgillies/shapely/commit/755f0673de10ca1faa29b1b751d38b1dd8c9378b
https://github.com/Toblerity/Shapely/issues/37
Shapely putting its .pyd files in the DLLs directory was started because Python didn't have any other directories that had been put on the PATH, and it was bad form to mangle the PATH directly yourself upon import. Is it ok to mangle the PATH on import to point to your .pyd in an egg now?

Rtree does the same, and should probably be fixed up accordingly as well.

Howard
Sean Gillies
2012-12-10 17:43:04 UTC
Permalink
Modifying the system path isn't ideal, but I think it's all we have
short writing our own library loader ( extending
ctypes.LibraryLoader?).
Post by Howard Butler
Post by Sean Gillies
Can anybody take a look at this change to setup.py?
https://github.com/sgillies/shapely/commit/755f0673de10ca1faa29b1b751d38b1dd8c9378b
https://github.com/Toblerity/Shapely/issues/37
Shapely putting its .pyd files in the DLLs directory was started because Python didn't have any other directories that had been put on the PATH, and it was bad form to mangle the PATH directly yourself upon import. Is it ok to mangle the PATH on import to point to your .pyd in an egg now?
Rtree does the same, and should probably be fixed up accordingly as well.
Howard
_______________________________________________
Community mailing list
Community at lists.gispython.org
http://lists.gispython.org/mailman/listinfo/community
--
Sean Gillies
Loading...