Open Jc2k opened 8 years ago
Coincidentally, I hit a package that does options 2 - try 'pip install py.test'. It just does:
import sys
from distutils.core import setup
if __name__ == "__main__":
if "sdist" not in sys.argv[1:]:
raise ValueError("please use 'pytest' pypi package instead of 'py.test'")
setup(
name="py.test",
version="0.0",
description="please use 'pytest' for installation",
)
Has this ever been resolved? We are running into the same issues.
I'm still hoping for a fix too..
copying build/lib.linux-x86_64-2.7/pysimplesoap/helpers.py -> build/bdist.linux-x86_64/wheel/pysimplesoap error: [Errno 2] No such file or directory: 'build/bdist.linux-x86_64/wheel/pysimplesoap/helpers.py'
I have been facing the same issue. I have deleted both pysimplesoap and soap2py and ran the execution. It is still prompting me with the same error.
Hi
Calling
setup()
insetup.py
twice is weird and confuses pip.One example is if you try to use wheels. We use wheels to speed up our Travis CI - our
requirements.txt
is fetched and compiled once, and future builds are about 10 minutes quicker (lots of dependencies!). Unfortunately, becausesetup()
is called twice this no longer works:I recreated this locally, and fixed it by only calling
setup()
once.Another weird thing is that if you
pip install pysimplesoap
in an empty virtualenv and dopip freeze
you get:That's because
setup.py
is executed by pip during the install. So pip downloadspysimplesoap
butsetup.py install
will installpysimplesoap
andsoap2py
from that.tar.gz
. Of course, depending on which one you install, the other won't have the correctinstalled_files.txt
in its egg-info, sopip uninstall
gets weird:And if you uninstall one of these it will leave the
egg-info
directory for the other.And if someone else then installs your requirements.txt that you made with
pip freeze
then pip will installpysimplesoap
which will install both, thensoap2py
which will install both. Fun times!There are a couple of alternatives you could try:
README.rst
that gets shown on pypi to explain further.