Kronuz / pyScss

pyScss, a Scss compiler for Python
MIT License
582 stars 140 forks source link

I can't manage to install pyScss with buildout, buildout don't use entry point configuration of pyScss package #109

Open harobed opened 11 years ago

harobed commented 11 years ago

Hi,

I try to use pyScss with buildout but not success :

$ cat buildout.cfg
[buildout]
parts = pyscss

[pyscss]
recipe = z3c.recipe.scripts
eggs =
    pyScss

$ python bootstrap.py
$ bin/buildout
$ ls bin
buildout  pyscss
$ bin/pyscss
Traceback (most recent call last):
  File "bin/pyscss", line 20, in <module>
    sys.exit(scss.main())
AttributeError: 'module' object has no attribute 'main'

Why buildout didn't use this entry point configuration ? https://github.com/Kronuz/pyScss/blob/master/setup.py#L109

I did a mistake in my buildout.cfg ?

Best regards, Stephane

harobed commented 11 years ago

I think it's pyScss issue :

$ virtualenv my_env1
$ source my_env/bin/activate
(my_env)$ pip install pyscss
(my_env)$ ./my_env/bin/pyscss --help
Traceback (most recent call last):
  File "./my_env/bin/pyscss", line 8, in <module>
    load_entry_point('pyScss==1.1.4', 'console_scripts', 'pyscss')()
  File "/tmp/test8/my_env/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 318, in load_entry_point
  File "/tmp/test8/my_env/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2221, in load_entry_point
  File "/tmp/test8/my_env/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1959, in load
ImportError: <module 'scss' from '/tmp/test8/my_env/lib/python2.7/site-packages/scss/__init__.pyc'> has no 'main' attribute

No problem if I do a git clone, and pip install -e .

eevee commented 10 years ago

Is this still happening? I don't know anything about buildout, sorry :(