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

Commit

Permalink
Updating setup.py to build properly on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
R. Tyler Ballance committed Mar 22, 2010
1 parent 1920cf7 commit 44ea3f0
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
#!/usr/bin/env python

import os
from distutils.core import setup, Extension

SETUPTOOLS = False

try:
from setuptools import setup, Extension
SETUPTOOLS = False
except ImportError:
from distutils.core import setup, Extension

base_modules = [
Extension('_pyecc', [
Expand All @@ -14,7 +23,9 @@
'py_objects.c',
],
libraries=['gcrypt'],
extra_compile_args=['-Wall', '-Werror'])
include_dirs=['/usr/include', '/usr/local/include',],
library_dirs=['/usr/local/lib', '/usr/local/lib64',],
extra_compile_args=['-Wall', '-Werror',]),
]

packages = ['pyecc']
Expand All @@ -25,13 +36,13 @@
if missing_modules:
print 'WARNING: Some Python modules are missing dependencies: %s' % ', '.join(map(lambda x: x.name, missing_modules))

setup(
kwargs = dict(
name = 'PyECC',
description = '''A CPython module to enable Elliptical Curve Cryptography in Python''',
version = '1.0',
author = 'R. Tyler Ballance',
author_email = 'tyler@slide.com',
ext_modules=modules,
author_email = 'tyler@monkeypox.org',
ext_modules=modules,
py_modules=['pyecc'])


setup(**kwargs)

0 comments on commit 44ea3f0

Please sign in to comment.