sangoma / python-ESL

FreeSWITCH's ESL SWIG wrapper for Python packaged with setuptools
https://freeswitch.org/confluence/display/FREESWITCH/Python+ESL
Mozilla Public License 2.0
23 stars 26 forks source link

Uncompatible with swig4 #2

Open ergoithz opened 4 years ago

ergoithz commented 4 years ago

Swig 4 deprecated -classic. https://github.com/sangoma/python-ESL/blob/a9ce41832cbd23557183120dd5027631f70d6ea2/setup.py#L25

Relevant output (compilation fails with exit status 1):

    swig -python -classic -c++ -DMULTIPLICITY -threads -I. -o ESL_wrap.cpp ESL.i
    Deprecated command line option: -classic. This option is no longer supported.
    error: command 'swig' failed with exit status 1

Tested in swig 4.0.1.

mneirynck commented 3 years ago

Same issue here, any fix for this? Just remove the -classic?

gpetrom commented 2 years ago

Same issue here also

gpetrom commented 2 years ago

Hi I have manage to solve this apt install git and then pip install -e git+https://github.com/alexey-khabulyak/python-ESL#egg=python-ESL

BasicExp commented 1 year ago

You can also install with pip and lock swig to a 3.X.X version as well, which is what I ended up doing as python-ESL was the only package that was making use of it.