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

前端 未结 2 1921
长情又很酷
长情又很酷 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.

提交回复
热议问题