<commit_before>
SPK_NAME = Python27
SPK_VERS = 2.7.2
SPK_REV = 1
SPK_ICON = src/python.png

DEPENDS  = cross/python27 cross/pocketsphinx
DEPENDS += cross/setuptools cross/pip cross/pyopenssl cross/pycrypto cross/pycurl
DEPENDS += cross/pil cross/cheetah cross/yenc cross/tornado
DEPENDS += cross/busybox

MAINTAINER = <EMAIL>
COMMENT    = "Python Programming Language"
ADMIN_PORT = 
RELOAD_UI = yes
DISPLAY_NAME = Python 2.7

HOMEPAGE   = http://www.python.org/
LICENSE    =

INSTALLER_SCRIPT = src/installer.sh
SSS_SCRIPT       = 
ADDITIONAL_SCRIPTS = 

INSTALL_PREFIX = /usr/local/python27
PYTHON_LIB_DIR = lib/python2.7

PLIST_TRANSFORM = sed "s%@PYTHON_SITE_PACKAGES@%$(PYTHON_LIB_DIR)/site-packages%"

POST_STRIP_TARGET = python_cleanup

include ../../mk/spksrc.spk.mk

.PHONY: python_cleanup
python_cleanup:
	rm $(STAGING_DIR)/$(PYTHON_LIB_DIR)/config/libpython*.a
	find $(STAGING_DIR)/$(PYTHON_LIB_DIR) -type d -regex '.*/[Tt]ests?' | xargs rm -fr
	find $(STAGING_DIR)/$(PYTHON_LIB_DIR) -type f -regex '.*\.py[co]' | xargs rm -f
	find $(STAGING_DIR)/$(PYTHON_LIB_DIR) -type f -regex '.*\.py' | xargs chmod 444
<commit_msg>Remove pocketsphinx from python27 as it is broken<commit_after>
SPK_NAME = Python27
SPK_VERS = 2.7.2
SPK_REV = 1
SPK_ICON = src/python.png

DEPENDS  = cross/python27
DEPENDS += cross/setuptools cross/pip cross/pyopenssl cross/pycrypto cross/pycurl
DEPENDS += cross/pil cross/cheetah cross/yenc cross/tornado
DEPENDS += cross/busybox

MAINTAINER = <EMAIL>
COMMENT    = "Python Programming Language"
ADMIN_PORT = 
RELOAD_UI = yes
DISPLAY_NAME = Python 2.7

HOMEPAGE   = http://www.python.org/
LICENSE    =

INSTALLER_SCRIPT = src/installer.sh
SSS_SCRIPT       = 
ADDITIONAL_SCRIPTS = 

INSTALL_PREFIX = /usr/local/python27
PYTHON_LIB_DIR = lib/python2.7

PLIST_TRANSFORM = sed "s%@PYTHON_SITE_PACKAGES@%$(PYTHON_LIB_DIR)/site-packages%"

POST_STRIP_TARGET = python_cleanup

include ../../mk/spksrc.spk.mk

.PHONY: python_cleanup
python_cleanup:
	rm $(STAGING_DIR)/$(PYTHON_LIB_DIR)/config/libpython*.a
	find $(STAGING_DIR)/$(PYTHON_LIB_DIR) -type d -regex '.*/[Tt]ests?' | xargs rm -fr
	find $(STAGING_DIR)/$(PYTHON_LIB_DIR) -type f -regex '.*\.py[co]' | xargs rm -f
	find $(STAGING_DIR)/$(PYTHON_LIB_DIR) -type f -regex '.*\.py' | xargs chmod 444

{'fraction_non_alphanumeric': 0.13230769230769232, 'fraction_numerical': 0.015824175824175824, 'mean_word_length': 4.419047619047619, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4972579', 'n_tokens_mistral': 976, 'n_tokens_neox': 928, 'n_words': 180}