<commit_before>Exports and aliases for build environment configuration
-------------------------------------------------------
Add the following exports and aliases to your Mac OS X ~/.profile or other shell profile file:

  export ARCHFLAGS="-arch x86_64 -arch i386"
  export CC=/usr/bin/gcc-4.2
  export MACOSX_DEPLOYMENT_TARGET=10.6

  alias env64="sudo env ARCHFLAGS='-arch x86_64' CC=/usr/bin/gcc-4.2 MACOSX_DEPLOYMENT_TARGET=10.6"
  alias env32="sudo env ARCHFLAGS='-arch i386' CC=/usr/bin/gcc-4.2 MACOSX_DEPLOYMENT_TARGET=10.6"
  alias envintel="sudo env ARCHFLAGS='-arch x86_64 -arch i386' CC=/usr/bin/gcc-4.2 MACOSX_DEPLOYMENT_TARGET=10.6"

  alias sitepack25="cd /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages"
  alias sitepack26="cd /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages"
  alias sitepack27="cd /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages"


Notes:
------
a)  The exports above can be used for building Python modules manually within a virtualenv with the Intel Mac OS X 10.6 compile tools.

b)  The env aliases can be used for installing system Python modules manually with pip for intel 32-bit, 64-bit or intel/fat builds
    (both 32-bit & 64-bit) with the latest Mac OS X 10.6 SDK, e.g.

        env64 pip install -M -r your-pip-requirements.txt

c)  The sitepack aliases are useful to verify where packages are installed if you have multiple Python frameworks installed

d)  For an alternative basic Python environment setup (distribute, pip, virtualenv + virtualenvwrapper) that installs modules in a
    local user directory (i.e. without having to use sudo) instead of in system Python, see http://stackoverflow.com/questions/4324558


Akvo dev environment setup
--------------------------
1)  Install a recent 2.6 or 2.7 Mac OS X Python build from http://python.org/download/releases
    - this will add /Library/Frameworks/Python.framework/Versions/2.6/bin or similar to your env PATH

2)  Run scripts/deployment/builders/rebuild_osx_dev_env.sh to install or update the required system Python packages and
    create a new RSR virtualenv instance or update an existing instance.<commit_msg>[#6698487] Moved dev tools and environment setup notes into separate files.<commit_after>Exports and aliases for build environment configuration
-------------------------------------------------------
Add the following exports and aliases to your Mac OS X ~/.profile or other shell profile file:

  export ARCHFLAGS="-arch x86_64 -arch i386"
  export CC=/usr/bin/gcc-4.2
  export MACOSX_DEPLOYMENT_TARGET=10.6

  alias env64="sudo env ARCHFLAGS='-arch x86_64' CC=/usr/bin/gcc-4.2 MACOSX_DEPLOYMENT_TARGET=10.6"
  alias env32="sudo env ARCHFLAGS='-arch i386' CC=/usr/bin/gcc-4.2 MACOSX_DEPLOYMENT_TARGET=10.6"
  alias envintel="sudo env ARCHFLAGS='-arch x86_64 -arch i386' CC=/usr/bin/gcc-4.2 MACOSX_DEPLOYMENT_TARGET=10.6"

  alias sitepack25="cd /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages"
  alias sitepack26="cd /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages"
  alias sitepack27="cd /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages"


Notes:
------
a)  The exports above can be used for building Python modules manually within a virtualenv with the Intel Mac OS X 10.6 compile tools.

b)  The env aliases can be used for installing system Python modules manually with pip for intel 32-bit, 64-bit or universal builds
    (both 32-bit & 64-bit) with the latest Mac OS X 10.6 SDK, e.g.

        env64 pip install -M -r your-pip-requirements.txt

c)  The sitepack aliases are useful to verify where packages are installed if you have multiple Python frameworks installed

d)  For an alternative basic Python environment setup (distribute, pip, virtualenv + virtualenvwrapper) that installs modules in a
    local user directory (i.e. without having to use sudo) instead of in system Python, see http://stackoverflow.com/questions/4324558


Configure your Python packages and RSR virtualenv
-------------------------------------------------
1)  Run scripts/deployment/builders/rebuild_osx_dev_env.sh to install or update the required system Python packages and
    create a new RSR virtualenv instance or update an existing instance.
{'fraction_non_alphanumeric': 0.12298479963150621, 'fraction_numerical': 0.04329801934592354, 'mean_word_length': 3.4136178861788617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1348062', 'n_tokens_mistral': 1429, 'n_tokens_neox': 1285, 'n_words': 456}