<commit_before>#!/bin/bash

# Automation of this is a TODO. For now, it depends on manually built libraries
# as detailed in https://gist.github.com/sgillies/a8a2fb910a98a8566d0a.

export MACOSX_DEPLOYMENT_TARGET=10.7
export GDAL_CONFIG="/usr/local/bin/gdal-config"
export PACKAGE_DATA=1

VERSION=$1

source $HOME/envs/riowhl27/bin/activate
CFLAGS="`$GDAL_CONFIG --cflags`" LDFLAGS="`$GDAL_CONFIG --libs` `$GDAL_CONFIG --dep-libs`" python setup.py bdist_wheel -d wheels/$VERSION
source $HOME/envs/riowhl34/bin/activate
CFLAGS="`$GDAL_CONFIG --cflags`" LDFLAGS="`$GDAL_CONFIG --libs` `$GDAL_CONFIG --dep-libs`" python setup.py bdist_wheel -d wheels/$VERSION

find wheels/$VERSION -name rasterio-$VERSION*.whl -exec delocate-wheel -w fixed_wheels/$VERSION --require-archs=intel -v {} \;
find fixed_wheels/$VERSION -name *.whl -exec rename s/macosx_10_6_intel/macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64/ {} \;<commit_msg>Add 10_10 tags.<commit_after>#!/bin/bash

# Automation of this is a TODO. For now, it depends on manually built libraries
# as detailed in https://gist.github.com/sgillies/a8a2fb910a98a8566d0a.

export MACOSX_DEPLOYMENT_TARGET=10.6
export GDAL_CONFIG="/usr/local/bin/gdal-config"
export PACKAGE_DATA=1

VERSION=$1

source $HOME/envs/riowhl27/bin/activate
CFLAGS="`$GDAL_CONFIG --cflags`" LDFLAGS="`$GDAL_CONFIG --libs` `$GDAL_CONFIG --dep-libs`" python setup.py bdist_wheel -d wheels/$VERSION
source $HOME/envs/riowhl34/bin/activate
CFLAGS="`$GDAL_CONFIG --cflags`" LDFLAGS="`$GDAL_CONFIG --libs` `$GDAL_CONFIG --dep-libs`" python setup.py bdist_wheel -d wheels/$VERSION

parallel delocate-wheel -w fixed_wheels/$VERSION --require-archs=intel -v {} ::: wheels/$VERSION/*.whl
parallel cp {} {.}.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl ::: fixed_wheels/$VERSION/*.whl
{'fraction_non_alphanumeric': 0.1427792915531335, 'fraction_numerical': 0.04577656675749319, 'mean_word_length': 5.419580419580419, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '7008444', 'n_tokens_mistral': 769, 'n_tokens_neox': 713, 'n_words': 134}