This is a great idea, this functionality does not currently exist, could you please file a new issue at <a href="http://ironpython.codeplex.com">http://ironpython.codeplex.com</a>?<div><br></div><div>Thanks,</div><div><br>
</div><div>slide<br><br><div class="gmail_quote">On Sun, Mar 11, 2012 at 11:23 PM, Keith Rome <span dir="ltr">&lt;<a href="mailto:rome@wintellect.com">rome@wintellect.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks for the great work!<br>
<br>
Regarding the new zipimport functionality - is it possible to specify an embedded resource name for the path to the zip? For example, if I wanted to distribute a library by just packaging it up within an assembly? Or is it necessary to write the resource out to a file on disk first?<br>

<br>
Example:<br>
Instead of: sys.path.insert(0, &#39;/path/lib.zip&#39;)<br>
Something like: sys.path.insert(0, &#39;resource:path.lib.zip&#39;)<br>
<br>
The primary reason behind wanting to deliver via embedded resource is to prevent tinkering/tampering by end users. But there are additional reasons such as simpler deployment under Silverlight and not having to deal with versioning of extra &quot;satellite&quot; external resources when using our scripting runtime environment in multiple projects. All of those issues go away when we can package everything directly within the assembly(s).<br>

<br>
I am currently using a custom PlatformAdaptationLayer to supply the file contents at runtime and msbuild wildcard inclusion of the libraries and all subfolders to embed them as resources (something that msbuild tolerates, but Visual Studio does not). It would be much cleaner to just use zipimport, as well as much easier to maintain (and the distributed assembly would also be much smaller due to zip compression).<br>

<span class="HOEnZb"><font color="#888888"><br>
<br>
Keith Rome<br>
Senior Consultant and Architect<br>
MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS<br>
Wintellect | <a href="tel:770.617.4016" value="+17706174016">770.617.4016</a> | <a href="mailto:krome@wintellect.com">krome@wintellect.com</a><br>
<a href="http://www.wintellect.com" target="_blank">www.wintellect.com</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: ironpython-users-bounces+rome=<a href="mailto:wintellect.com@python.org">wintellect.com@python.org</a> [mailto:<a href="mailto:ironpython-users-bounces%2Brome">ironpython-users-bounces+rome</a>=<a href="mailto:wintellect.com@python.org">wintellect.com@python.org</a>] On Behalf Of Jeff Hardy<br>

Sent: Monday, March 12, 2012 12:53 AM<br>
To: <a href="mailto:ironpython-users@python.org">ironpython-users@python.org</a><br>
Subject: [Ironpython-users] IronPython 2.7.2 Released<br>
<br>
On behalf of the IronPython team, I&#39;m happy to announce the final<br>
release IronPython 2.7.2<br>
(<a href="http://ironpython.codeplex.com/releases/view/74478" target="_blank">http://ironpython.codeplex.com/releases/view/74478</a>). This release<br>
includes everything from IronPython 2.7 and 2.7.1 as well. Like all<br>
IronPython 2.7-series releases, .NET 4 is required to install it.<br>
Installing this release will replace any existing IronPython<br>
2.7-series installation.<br>
<br>
Unlike previous releases, the assemblies for all supported platforms<br>
are included in the installer as well as the zip package, in the<br>
&quot;Platforms&quot; directory. IronPython 2.7.2 includes support for .NET 3.5,<br>
.NET 4, Silverlight 4, and Silverlight 5, and preliminary releases for<br>
Mono for Android 4.0 and Windows Phone 7.5. For 2.7.2, the mobile<br>
platforms are previews; they have known issues, and expect them to<br>
change for 2.7.3.<br>
<br>
The biggest improvements in IronPython 2.7.2 are:<br>
support for loading libraries from zip archives (the zipimport module);<br>
the sqlite3 module;<br>
many improvements to the pyc.py compiler, such as the ability generate<br>
standalone executables by embedding the IronPython assemblies;<br>
and numerous other bug fixes.<br>
<br>
IronPython 2.7.2 is also available for embedding via NuGet. The main<br>
package is IronPython, and the standard library is in<br>
IronPython.StdLib.<br>
<br>
A huge thanks to everyone who helped make this release possible; this<br>
wouldn&#39;t have been nearly as big a release without your help!<br>
_______________________________________________<br>
Ironpython-users mailing list<br>
<a href="mailto:Ironpython-users@python.org">Ironpython-users@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/ironpython-users" target="_blank">http://mail.python.org/mailman/listinfo/ironpython-users</a><br>
<br>
_______________________________________________<br>
Ironpython-users mailing list<br>
<a href="mailto:Ironpython-users@python.org">Ironpython-users@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/ironpython-users" target="_blank">http://mail.python.org/mailman/listinfo/ironpython-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Website: <a href="http://earl-of-code.com" target="_blank">http://earl-of-code.com</a><br>
</div>