Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Add installation instructions to README.md #140

Merged
merged 5 commits into from
Mar 2, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,35 @@ The ICU homepage is http://site.icu-project.org/

See also the CLDR homepage at http://cldr.unicode.org/

## Installing PyICU

- Mac OS X
```sh
# (optional) remove remnants from previous installations
brew uninstall --ignore-dependencies icu4c
pip uninstall pyicu

# install libicu (keg-only)
brew install pkg-config icu4c

# let setup.py discover keg-only icu4c via pkg-config
export PATH="/usr/local/opt/icu4c/bin:/usr/local/opt/icu4c/sbin:$PATH"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/icu4c/lib/pkgconfig"

# ensure system clang is used for proper libstdc++ https://github.com/ovalhub/pyicu/issues/5#issuecomment-291631507
unset CC CXX

# avoid wheels from previous runs or PyPI
pip install --no-binary=:pyicu: pyicu
```

- Debian
```sh
apt-get update
apt-get install pkg-config libicu-dev
pip install --no-binary=:pyicu: pyicu
```

## Building PyICU

Before building PyICU the ICU libraries must be built and installed. Refer
Expand Down