[E-devel] Getting Started With The Python Bindings

Abdur-Rahmaan Janhangeer <[email protected]>
Newsgroups gmane.comp.window-managers.enlightenment.devel
Message-ID <CADrxXXk7wd9Pb-kSmoMN13po+pk-C6nOu5wOZsQNqhq94xdEqg@mail.gmail.com>
Greetings list,

Robert Wiley has been guiding me to set up efl. I downloaded
the python binding repo. The normal way is to install python3-efl

But i was wondering python-wise how exactly do you install the package
in a virtual environment after cloning?

I tried pip install . but did not work. Like i want to learn efl first
independently
of Bodhi Linux. brute installing a python3-x package is kind of aweful in
the
python perspective as python3 can mean anything. python3.9-efl means its
efl for python3.9. Else why not provide a pypi package that works? That's
why
you have pypi, to distribute packages to python devs ...


Pypi errors:

---
Collecting python-efl
  Downloading python-efl-1.23.0.tar.gz (11.7 MB)
     |████████████████████████████████| 11.7 MB 1.1 MB/s
Building wheels for collected packages: python-efl
  Building wheel for python-efl (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/appinv/play/xxx/venv/bin/python3.9 -u -c 'import sys,
setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-bvi2fget/python-efl/setup.py'"'"';
__file__='"'"'/tmp/pip-install-bvi2fget/python-efl/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
bdist_wheel -d /tmp/pip-wheel-bzsg9n9c
       cwd: /tmp/pip-install-bvi2fget/python-efl/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for python-efl
  Running setup.py clean for python-efl
Failed to build python-efl
Installing collected packages: python-efl
    Running setup.py install for python-efl ... error
    ERROR: Command errored out with exit status 1:
     command: /home/appinv/play/xxx/venv/bin/python3.9 -u -c 'import sys,
setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-bvi2fget/python-efl/setup.py'"'"';
__file__='"'"'/tmp/pip-install-bvi2fget/python-efl/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-record-wm8w9zr2/install-record.txt
--single-version-externally-managed --compile --install-headers
/home/appinv/play/xxx/venv/include/site/python3.9/python-efl
         cwd: /tmp/pip-install-bvi2fget/python-efl/
    Complete output (8 lines):
    Python-EFL: 1.23.0
    Checking for Python: OK, found 3.9.5
    Checking for Cython: not needed, using pre-generated C files
    Checking for Eina: Package eina was not found in the pkg-config search
path.
    Perhaps you should add the directory containing `eina.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'eina' found
    Did not find Eina with 'pkg-config'.
    ----------------------------------------
ERROR: Command errored out with exit status 1:
/home/appinv/play/xxx/venv/bin/python3.9 -u -c 'import sys, setuptools,
tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-bvi2fget/python-efl/setup.py'"'"';
__file__='"'"'/tmp/pip-install-bvi2fget/python-efl/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-record-wm8w9zr2/install-record.txt
--single-version-externally-managed --compile --install-headers
/home/appinv/play/xxx/venv/include/site/python3.9/python-efl Check the logs
for full command output.
---

Local install (pip install .) errors:

---
Processing /home/appinv/play/xxx/python-efl
Building wheels for collected packages: python-efl
  Building wheel for python-efl (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/appinv/play/xxx/venv/bin/python3.9 -u -c 'import sys,
setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-req-build-k8ok9_p4/setup.py'"'"';
__file__='"'"'/tmp/pip-req-build-k8ok9_p4/setup.py'"'"';f=getattr(tokenize,
'"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
'"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
bdist_wheel -d /tmp/pip-wheel-wqn5m_zq
       cwd: /tmp/pip-req-build-k8ok9_p4/
  Complete output (6 lines):
  usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: setup.py --help [cmd1 cmd2 ...]
     or: setup.py --help-commands
     or: setup.py cmd --help

  error: invalid command 'bdist_wheel'
  ----------------------------------------
  ERROR: Failed building wheel for python-efl
  Running setup.py clean for python-efl
Failed to build python-efl
Installing collected packages: python-efl
    Running setup.py install for python-efl ... error
    ERROR: Command errored out with exit status 1:
     command: /home/appinv/play/xxx/venv/bin/python3.9 -u -c 'import sys,
setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-req-build-k8ok9_p4/setup.py'"'"';
__file__='"'"'/tmp/pip-req-build-k8ok9_p4/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-record-nvvr31os/install-record.txt
--single-version-externally-managed --compile --install-headers
/home/appinv/play/xxx/venv/include/site/python3.9/python-efl
         cwd: /tmp/pip-req-build-k8ok9_p4/
    Complete output (3 lines):
    Python-EFL: 1.25.99a1221
    Checking for Python: OK, found 3.9.5
    Checking for Cython: not found! Needed >= 0.23.5
    ----------------------------------------
ERROR: Command errored out with exit status 1:
/home/appinv/play/xxx/venv/bin/python3.9 -u -c 'import sys, setuptools,
tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-k8ok9_p4/setup.py'"'"';
__file__='"'"'/tmp/pip-req-build-k8ok9_p4/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-record-nvvr31os/install-record.txt
--single-version-externally-managed --compile --install-headers
/home/appinv/play/xxx/venv/include/site/python3.9/python-efl Check the logs
for full command output.
---


So my beginner question is: how do you install python-efl in a way fit to
Python
developers

Thanks
Kind Regards,

Abdur-Rahmaan Janhangeer
about <https://compileralchemy.github.io/> | blog
<https://www.pythonkitchen.com>
github <https://github.com/Abdur-RahmaanJ>
Mauritius

_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.