File: setup-common.py

package info (click to toggle)
flashproxy 1.7-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 936 kB
  • ctags: 876
  • sloc: python: 3,708; sh: 823; makefile: 246; lisp: 15
file content (50 lines) | stat: -rwxr-xr-x 1,645 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python
"""Setup file for the flashproxy-common python module.

To build/install a self-contained binary distribution of flashproxy-client
(which integrates this module within it), see Makefile.
"""
# Note to future developers:
#
# We place flashproxy-common in the same directory as flashproxy-client for
# convenience, so that it's possible to run the client programs directly from
# a source checkout without needing to set PYTHONPATH. This works OK currently
# because flashproxy-client does not contain python modules, only programs, and
# therefore doesn't conflict with the flashproxy-common module.
#
# If we ever need to have a python module specific to flashproxy-client, the
# natural thing would be to add a setup.py for it. That is the reason why this
# file is called setup-common.py instead. However, there are still issues that
# arise from having two setup*.py files in the same directory, which is an
# unfortunate limitation of python's setuptools.
#
# See discussion on #6810 for more details.

import subprocess
import sys

from setuptools import setup, find_packages

p = subprocess.Popen(["sh", "version.sh"], stdout=subprocess.PIPE)
output, _ = p.communicate()
assert p.poll() == 0
version = output.strip()

setup(
    name = "flashproxy-common",
    author = "dcf",
    author_email = "dcf@torproject.org",
    description = ("Common code for flashproxy"),
    license = "BSD",
    keywords = ['tor', 'flashproxy'],

    packages = find_packages(exclude=['*.test']),
    test_suite='flashproxy.test',

    version = version,

    install_requires = [
        'setuptools',
        'M2Crypto',
        ],
)