0

I'm trying to install a library (p4python) with pip which requires to specify the --ssl option.
Here is the command I run:

 pip install --install-option="--ssl" --install-option="/usr/local/ssl/lib/" p4python

I'm getting the error:

error: option --ssl not recognize

I don't understand. This should be a valid options for setup.py: https://swarm.workshop.perforce.com/files/guest/perforce_software/p4python/setup.py?v=7
I saw someone mentioning this issue in this post:
How do I install p4python on macOS 10.15 Catalina?
However, no one gave a solution for this problem.

Any idea how to solve this?

Thank you in advance for your help.

KB303
  • 143
  • 1
  • 6

1 Answers1

0

In p4python setup.py the option --ssl is available for setup.py subcommands build, build_ext and sdist. But not for install or wheel.

That is, you can run python setup.py build --ssl but I'm not sure you can do python setup.py install --ssl. And pip install --install-option=--ssl does exactly that.

So either you use pip to install a precompiled wheel ­— they provide a lot but not for Python 3.8. Downgrade to Python 3.7.

Or you install from sources by downloading the sources, unpacking the archive and running

python setup.py build_ext --ssl /usr/local/ssl/lib/
python setup.py build --ssl /usr/local/ssl/lib/
python setup.py install
phd
  • 82,685
  • 13
  • 120
  • 165