Skip to content

Commit 91c7331

Browse files
committed
Merge branch 'vail130-master'
2 parents f4bbf57 + 6c19a6a commit 91c7331

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,32 @@ Check the [examples](https://github.com/concordusapps/python-xmlsec/tree/master/
88

99
## Install
1010

11+
### Pre-Install
12+
13+
#### Linux
14+
15+
```sh
16+
apt-get install libxml2-dev libxmlsec1-dev
17+
```
18+
19+
#### Mac
20+
21+
```sh
22+
brew install libxml2 libxmlsec1
23+
```
24+
1125
### Automated
1226

1327
1. **xmlsec** can be installed through `easy_install` or `pip`.
1428

1529
```sh
1630
pip install xmlsec
1731
```
32+
33+
#### Mac
34+
35+
If you get any fatal errors about missing .h files, update your C_INCLUDE_PATH environment variable to
36+
include the appropriate files from the libxml2 and libxmlsec1 libraries.
1837

1938
### Manual
2039

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,15 @@ def make_extension(name, cython=True):
8383
for lib in ['libxml-2.0', 'xmlsec1-%s' % XMLSEC_CRYPTO]:
8484
config.update(parse(lib))
8585

86+
config['extra_compile_args'] = ['-DXMLSEC_CRYPTO_OPENSSL=1']
87+
8688
# List-ify config for setuptools.
8789
for key in config:
8890
config[key] = list(config[key])
8991

92+
if 'include_dirs' not in config:
93+
config['include_dirs'] = []
94+
9095
# Add the source directories for inclusion.
9196
config['include_dirs'].insert(0, 'src')
9297

0 commit comments

Comments
 (0)