[
https://issues.apache.org/jira/browse/HADOOP-9008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13494351#comment-13494351
]
Raja Aluri commented on HADOOP-9008:
------------------------------------
Chris.
It is just for code readability sake. I will leave it to you.
Sorry for not pointing this out earlier.
Please consider using os.path.join() or os.path.abspath(os.path.join())
instead of normpath for cross platform sake.
Also for building directory structure like the one below without platform
specific '/'s
{code}
arc_name = base_name + "/lib/native"
{code}
can be
{code}
os.path.join(base_name, 'lib' , 'native')
{code}
{code}
>>> os.path.abspath(".")
'/Users/raja/work/repos/'
>>> os.path.abspath("../")
'/Users/raja/work'
>>> os.path.normpath("../../")
'../..'
>>> os.path.normpath("..")
'..'
>>> os.path.normpath("..")
{code}
{code}
> Building hadoop tarball fails on Windows
> ----------------------------------------
>
> Key: HADOOP-9008
> URL: https://issues.apache.org/jira/browse/HADOOP-9008
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: trunk-win
> Reporter: Ivan Mitic
> Assignee: Chris Nauroth
> Attachments: HADOOP-9008-branch-trunk-win.patch,
> HADOOP-9008-branch-trunk-win.patch, HADOOP-9008-branch-trunk-win.patch
>
>
> Trying to build Hadoop trunk tarball via {{mvn package -Pdist -DskipTests
> -Dtar}} fails on Windows.
> Build system generates sh scripts that execute build tasks what does not work
> on Windows without Cygwin. It might make sense to apply the same pattern as
> in HADOOP-8924, and use python instead of sh.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira