I have this project link and I'm trying to create a setup.py
so that the functions and classes of xmppbot.py
are available for other developments but I do not give with it.
I have rewritten the setup.py
thousand times taking as an example:
etc and then at the moment of truth this happens:
$ python
Python 2.7.9 (default, Sep 17 2016, 20:26:04)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from xmppbot import botcmd, XmppBot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name botcmd
or
>>> from xmppbot import *
>>> XmppBot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'XmppBot' is not defined
>>> a=XmppBot()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'XmppBot' is not defined
or
>>> from xmppbot import *
>>> XmppBot
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'XmppBot' is not defined
>>> a=XmppBot()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'XmppBot' is not defined
How does it have to be the setup.py
to install well?
I have also tried to take out and put the package in the folder xmppbot