[Scons-users] Maximum Path Length Limitation of Windows in scons
Bill Deegan
bill at baddogconsulting.com
Thu Feb 4 23:50:26 EST 2016
Sally,
This is a new one for me.
I'd say check the release notes here:
https://bitbucket.org/scons/scons/src/09e1f0326b7678d1248dab88b28b456fd7d6fb54/src/CHANGES.txt?at=default&fileviewer=file-view-default
What do you get when you run: scons --tree=prune ?
-Bill
On Thu, Feb 4, 2016 at 6:08 PM, Sally Arias <troy57 at gmail.com> wrote:
> Hi,
>
> I have a very long path name that exceeds windows maximum path length
> limitation that is 260. It does not work as it is.
>
> Workaround for Maximum Path Length Limitation:
>
> https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
>
> Adding "\\?\" prefix fixes this issue on python but not on scons.
>
> For example,
>
> os.path.exists(u"\\\\?\\C:\\longpath.....") and
> os.path.listdir(u"\\\\?\\C:\\longdir.....") work.
> env.Install(u"\\\\?\\C:\\longpath.....", u"\\\\?\\C:\\longpath.....") does
> not work. It does not do anything.
>
> Withou this prefix, scons generates Type Error.
> env.Install("C:\\long_path.....", "C:\\long_path.....")
> TypeError : listdir() argument 1 must be (buffer overflow), not str
>
> Are there any workarounds for this? Does scons support long path that
> exceeds windows maximum path length limitation? I'm using scons 2.2.0.
> Should I upgrade scons version?
>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160204/b441d17c/attachment.html>
More information about the Scons-users
mailing list