spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Holden Karau (Jira)" <j...@apache.org>
Subject [jira] [Assigned] (SPARK-30823) %PYTHONPATH% not set in python/docs/make2.bat, resulting in failed/wrong documentation builds
Date Thu, 07 May 2020 18:00:00 GMT

     [ https://issues.apache.org/jira/browse/SPARK-30823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Holden Karau reassigned SPARK-30823:
------------------------------------

    Assignee: David Toneian

> %PYTHONPATH% not set in python/docs/make2.bat, resulting in failed/wrong documentation
builds
> ---------------------------------------------------------------------------------------------
>
>                 Key: SPARK-30823
>                 URL: https://issues.apache.org/jira/browse/SPARK-30823
>             Project: Spark
>          Issue Type: Bug
>          Components: Documentation, PySpark, Windows
>    Affects Versions: 2.4.5
>         Environment: Tested on Windows 10.
>            Reporter: David Toneian
>            Assignee: David Toneian
>            Priority: Minor
>             Fix For: 2.4.6
>
>
> When building the PySpark documentation on Windows, by changing directory to {{python/docs}}
and running {{make.bat}} (which runs {{make2.bat}}), the majority of the documentation may
not be built if {{pyspark}} is not in the default {{%PYTHONPATH%}}. Sphinx then reports that
{{pyspark}} (and possibly dependencies) cannot be imported.
> If {{pyspark}} is in the default {{%PYTHONPATH%}}, I suppose it is that version of {{pyspark}}
– as opposed to the version found above the {{python/docs}} directory – that is considered
when building the documentation, which may result in documentation that does not correspond
to the development version one is trying to build.
> {{python/docs/Makefile}} avoids this issue by setting
>  ??export PYTHONPATH=$(realpath ..):$(realpath ../lib/py4j-0.10.8.1-src.zip)??
>  on line 10, but {{make2.bat}} does no such thing. The fix consist of adding
>  ??set PYTHONPATH=..;..\lib\py4j-0.10.8.1-src.zip??
>  to {{make2.bat}}.
> See [GitHub PR #27569|https://github.com/apache/spark/pull/27569].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message