meejah / txtorcon

Twisted-based asynchronous Tor control protocol implementation. Includes unit-tests, examples, state-tracking code and configuration abstraction.
http://fjblvrw2jrxnhtg67qpbzi45r7ofojaoo3orzykesly2j3c2m3htapid.onion/
MIT License
250 stars 72 forks source link

Please add variables that control docs and examples install #281

Open yurivict opened 6 years ago

yurivict commented 6 years ago

In the FreeBSD port we only need to install docs and examples when corresponding port options are chosen. Currently, we have to patch setup.py to achieve this. It would have been much nicer if corresponding build variables could be passed to setup.py.

meejah commented 6 years ago

Hi. I'm definitely not opposed to making those things optional -- is there already a 'standard' way to do this with setuptools / setup.py that would work for your use-case?

yurivict commented 6 years ago

I am not sure if there is a standard way. You can do --enable-docs/--disable-docs and --enable-examples/--disable-examples.