PIP install a Python Package without a setup.py file?

前端 未结 2 1918
长情又很酷
长情又很酷 2020-12-10 04:06

I\'m trying to figure out how I can install a python package that doesn\'t have a setup.py file with pip. (package in question is http://code.google.com/p/djang

相关标签:
2条回答
  • 2020-12-10 04:17

    Fork the repo and add a working setup.py. Then send a pull request to the author.

    Oh, it's on Google Code. Well then, file a bug and post a patch.

    If the author refuses to make their code into an installable Python distribution (never happened to me), just host your fork somewhere and put that in your requirements file.

    0 讨论(0)
  • 2020-12-10 04:23

    You can't. PIP installs Python packages. That's not a Python package. I've heard that the Django community in general doesn't make much packages, which makes things like what you are trying to do tricky. But that could be wrong.

    If you want to freeze your environment you might want to look into Buildout. Other options in this case is to use an svn:external.

    0 讨论(0)
提交回复
热议问题