mirror of https://github.com/scrapy/scrapy.git
27 lines
574 B
Python
27 lines
574 B
Python
"""
|
|
Scrapy - a screen scraping framework written in Python
|
|
"""
|
|
|
|
# IMPORTANT: remember to also update the version in docs/conf.py
|
|
__version__ = "0.7.0"
|
|
|
|
import sys, os
|
|
|
|
if sys.version_info < (2,5):
|
|
print "Scrapy %s requires Python 2.5 or above" % __version__
|
|
sys.exit(1)
|
|
|
|
# monkey patches to fix external library issues
|
|
from scrapy.xlib.patches import apply_patches
|
|
apply_patches()
|
|
|
|
# optional_features is a set containing Scrapy optional features
|
|
optional_features = set()
|
|
|
|
try:
|
|
import OpenSSL
|
|
except ImportError:
|
|
pass
|
|
else:
|
|
optional_features.add('ssl')
|