[petsc-users] petsc4py --with-64-bit-indices

Barry Smith bsmith at mcs.anl.gov
Sat Dec 17 13:19:41 CST 2016


  Looks like --install-option= are options for pip not the underlying package. 

  Lisandro,  how does one do what seems to be a simple request?


> On Dec 17, 2016, at 9:00 AM, Aurelien Ponte <aurelien.ponte at ifremer.fr> wrote:
> 
> Hi all,
> 
> I am trying to install petsc4py and petsc with the --with-64-bit-indices option.
> 
> I followed the pip install described on the petsc4py bitbucket with some slight modifications:
> 
> module load python/2.7.10_gnu-4.9.2
> wget https://bootstrap.pypa.io/get-pip.py
> python get-pip.py --user
> setenv MPICC mpiicc
> pip install --user --upgrade mpi4py
> pip install --user --upgrade numpy
> pip install --user petsc petsc4py --install-option="--with-64-bit-indices"
> 
> but I do get the error copied below.
> 
> Any ideas on what I could do?
> 
> Should I try to use a different method of install?
> 
> thanks
> 
> aurelien
> 
> 
> 
> 
> service7>479% pip install --user petsc petsc4py --install-option="--with-64-bit-indices"
> /home1/caparmor/aponte/.local/lib/python2.7/site-packages/pip/commands/install.py:194: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
>  cmdoptions.check_install_build_global(options)
> Collecting petsc
>  Downloading petsc-3.7.2.1.tar.gz (8.7MB)
>    100% |################################| 8.7MB 116kB/s
> Collecting petsc4py
>  Downloading petsc4py-3.7.0.tar.gz (1.7MB)
>    100% |################################| 1.7MB 415kB/s
> Requirement already satisfied: numpy in /home1/caparmor/aponte/.local/lib/python2.7/site-packages (from petsc4py)
> Skipping bdist_wheel for petsc, due to binaries being disabled for it.
> Skipping bdist_wheel for petsc4py, due to binaries being disabled for it.
> Installing collected packages: petsc, petsc4py
>  Running setup.py install for petsc ... error
>    Complete output from command /appli/python/2.7.10_gcc-4.9.2/python-2.7.10/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3C49gO/petsc/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-iuRtIV-record/install-record.txt --single-version-externally-managed --compile --with-64-bit-indices --user --prefix=:
>    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
>       or: -c --help [cmd1 cmd2 ...]
>       or: -c --help-commands
>       or: -c cmd --help
> 
>    error: option --with-64-bit-indices not recognized
> 
>    ----------------------------------------
> Command "/appli/python/2.7.10_gcc-4.9.2/python-2.7.10/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-3C49gO/petsc/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-iuRtIV-record/install-record.txt --single-version-externally-managed --compile --with-64-bit-indices --user --prefix=" failed with error code 1 in /tmp/pip-build-3C49gO/petsc/
> 
> 
> -- 
> Aurélien Ponte
> Tel: (+33) 2 98 22 40 73
> Fax: (+33) 2 98 22 44 96
> UMR 6523, IFREMER
> ZI de la Pointe du Diable
> CS 10070
> 29280 Plouzané
> 



More information about the petsc-users mailing list