mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
python command not working in ubuntu 20.04 for apidocs and marvin (#6889)
Co-authored-by: Vivek Ps <vivekcek@gail.com>
This commit is contained in:
parent
94fd03df13
commit
4abb8b9ebf
@ -77,10 +77,10 @@ set -e
|
|||||||
gen_toc_file="`cygpath -w $thisdir`\\gen_toc.py"
|
gen_toc_file="`cygpath -w $thisdir`\\gen_toc.py"
|
||||||
for file in `find . -type f`; do
|
for file in `find . -type f`; do
|
||||||
echo "Parse file $file";
|
echo "Parse file $file";
|
||||||
python $gen_toc_file $file;
|
python3 $gen_toc_file $file;
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
python "$thisdir/gen_toc.py" $(find . -type f)
|
python3 "$thisdir/gen_toc.py" $(find . -type f)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat generatetoc_include.xsl >> generatetoc.xsl
|
cat generatetoc_include.xsl >> generatetoc.xsl
|
||||||
|
|||||||
@ -42,7 +42,7 @@ def replaceVersion(fname, version):
|
|||||||
|
|
||||||
def runSetupScript(args):
|
def runSetupScript(args):
|
||||||
"""Invoke setup.py with the provided arguments"""
|
"""Invoke setup.py with the provided arguments"""
|
||||||
cmd = ['python', setupScript] + args
|
cmd = ['python3', setupScript] + args
|
||||||
exitCode = subprocess.call(cmd)
|
exitCode = subprocess.call(cmd)
|
||||||
return exitCode
|
return exitCode
|
||||||
|
|
||||||
|
|||||||
@ -86,7 +86,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<workingDirectory>${exec.workingdir}</workingDirectory>
|
<workingDirectory>${exec.workingdir}</workingDirectory>
|
||||||
<executable>python</executable>
|
<executable>python3</executable>
|
||||||
<arguments>
|
<arguments>
|
||||||
<argument>mvn-setup.py</argument>
|
<argument>mvn-setup.py</argument>
|
||||||
<argument>${project.version}</argument>
|
<argument>${project.version}</argument>
|
||||||
@ -140,7 +140,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<workingDirectory>${exec.workingdir}</workingDirectory>
|
<workingDirectory>${exec.workingdir}</workingDirectory>
|
||||||
<executable>python</executable>
|
<executable>python3</executable>
|
||||||
<arguments>
|
<arguments>
|
||||||
<argument>mvn-setup.py</argument>
|
<argument>mvn-setup.py</argument>
|
||||||
<argument>${project.version}</argument>
|
<argument>${project.version}</argument>
|
||||||
@ -209,7 +209,7 @@
|
|||||||
</goals>
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<workingDirectory>${basedir}/marvin</workingDirectory>
|
<workingDirectory>${basedir}/marvin</workingDirectory>
|
||||||
<executable>python</executable>
|
<executable>python3</executable>
|
||||||
<arguments>
|
<arguments>
|
||||||
<argument>deployAndRun.py</argument>
|
<argument>deployAndRun.py</argument>
|
||||||
<argument>-c</argument>
|
<argument>-c</argument>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user