sapling/setup.py
Tony Tung 3cb14683b0 [fastmanifest] enforce strict prototypes
Summary: Newer versions of gcc (5.x) turn on `-Wstrict-prototype` by default.  Turn this on in our setup.py file for older compilers, and fix the errors that crop up from this.

Test Plan: make local

Reviewers: tnardone, wez, lcharignon

Reviewed By: lcharignon

Subscribers: mitrandir, mjpieters

Differential Revision: https://phabricator.intern.facebook.com/D3414620

Signature: t1:3414620:1465514102:d91026062582e2a3ab3fc773bbf17686fa38609f
2016-06-09 22:45:05 -07:00

95 lines
2.6 KiB
Python

try:
from setuptools import setup, Extensions
except ImportError:
from distutils.core import setup, Extension
setup(
name='fbhgext',
version='0.1.2',
author='Durham Goode',
maintainer='Durham Goode',
maintainer_email='durham@fb.com',
url='',
description='Facebook specific mercurial extensions',
long_description="",
keywords='fb hg mercurial',
license='',
packages=[
'fastmanifest',
'phabricator',
'sqldirstate',
],
py_modules=[
'arcdiff',
'backups',
'bundle2hooks',
'catnotate',
'chistedit',
'commitextras',
'dirsync',
'errorredirect',
'extutil',
'fbamend',
'fbconduit',
'fbhistedit',
'githelp',
'gitlookup',
'gitrevset',
'inhibitwarn',
'manifestdiskcache',
'mergedriver',
'morestatus',
'perftweaks',
'phabdiff',
'phrevset',
'phabstatus',
'pullcreatemarkers',
'pushrebase',
'pushvars',
'rage',
'reflog',
'reset',
'sampling',
'show',
'simplecache',
'smartlog',
'sparse',
'statprof',
'statprofext',
'tweakdefaults',
'upgradegeneraldelta',
],
ext_modules = [
Extension('cfastmanifest',
sources=['cfastmanifest.c',
'cfastmanifest/bsearch.c',
'cfastmanifest/buffer.c',
'cfastmanifest/checksum.c',
'cfastmanifest/node.c',
'cfastmanifest/tree.c',
'cfastmanifest/tree_arena.c',
'cfastmanifest/tree_convert.c',
'cfastmanifest/tree_copy.c',
'cfastmanifest/tree_diff.c',
'cfastmanifest/tree_disk.c',
'cfastmanifest/tree_iterator.c',
'cfastmanifest/tree_path.c',
],
include_dirs=['cfastmanifest',
'/usr/local/include',
'/opt/local/include',
],
library_dirs=[
'/usr/local/lib',
'/opt/local/lib',
],
libraries=['crypto',
],
extra_compile_args=[
"-std=c99",
"-Wall",
"-Werror", "-Werror=strict-prototypes"],
)
],
)