This removes the need to run `make pyx` before running setup.py on an
initial install which had stopped working due to various imports needed
for the makefile. Additionally, cythonize is capable of tracking
dependencies the cython files have, such as external headers or other
cython files.
I had to upgrade setuptools to distribute to get v0.6.16 which is the
minimum required to properly use `cythonize` due to a bug in setuptools:
https://bitbucket.org/tarek/distribute/issue/195/
PyPI only has versions for Python 2.3 and 2.4. Modern installs that
don't use our PPA to get a debianized copy of this library fail when
trying to resolve the setup.py install_requires dependencies. This fixes
the problem by using a reddit-hosted tarball of the 0.4 source (taken
directly from the source SVN repo).
This format will make it possible to add extra info to the recs later
without breaking clients.
(In response to a suggestion from /u/radd_it in /r/multibeta)
This is primarily to show how to set up reddit with HTTPS as well as to
make it possible to test HTTPS content. The default installation uses
the snakeoil cert and is therefore unauthenticated. A properly signed
certificate must be used for actual security.
For compressed links mode, augment the render class instead of replacing
it. This fixes an issue where compressed promoted links in self serve
listings didn't get the "promoted" class.
For POST requests, this is done (preferably) by the "r" parameter. Other
requests use the path prefix /r/{subreddit}. Since c.site is a global,
it's hard to actually see if it's used by methods, so this uses an
additional manually added parameter to the api_doc decorator to indicate
when c.site is important.
This removes a hardcache multi-lookup on every builder'd page and
simplifies the system for cake days.
Cups for the nightly "best *" awards are casualties of this, but they're
little known and probably won't be missed.