ned14 / pcpp

A C99 preprocessor written in pure Python
Other
220 stars 41 forks source link

ply package is not defined as a requirement - pip install fails #6

Closed mbdevpl closed 6 years ago

mbdevpl commented 6 years ago
$ pip3.6 install pcpp
Collecting pcpp
  Downloading pcpp-1.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/t1/pg0pff894b32wl4q8kcsgmv00000gn/T/pip-build-p4kyoyeh/pcpp/setup.py", line 4, in <module>
        import os, pcpp
      File "/private/var/folders/t1/pg0pff894b32wl4q8kcsgmv00000gn/T/pip-build-p4kyoyeh/pcpp/pcpp/__init__.py", line 1, in <module>
        from .cmd import main, version
      File "/private/var/folders/t1/pg0pff894b32wl4q8kcsgmv00000gn/T/pip-build-p4kyoyeh/pcpp/pcpp/cmd.py", line 5, in <module>
        from pcpp.preprocessor import Preprocessor, OutputDirective
      File "/private/var/folders/t1/pg0pff894b32wl4q8kcsgmv00000gn/T/pip-build-p4kyoyeh/pcpp/pcpp/preprocessor.py", line 95, in <module>
        from ply.lex import LexToken
    ModuleNotFoundError: No module named 'ply'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/t1/pg0pff894b32wl4q8kcsgmv00000gn/T/pip-build-p4kyoyeh/pcpp/

Currently user has to manually install ply package and rerun the pcpp install. Which fails anyway due to #4 ...

mbdevpl commented 6 years ago

As a crappy workaround: pip3.6 install git+https://github.com/ned14/pcpp.git

ned14 commented 6 years ago

Fixed!