~ubuntu-branches/debian/sid/simpleitk/sid

« back to all changes in this revision

Viewing changes to Wrapping/Python/Packaging/setupegg.py

  • Committer: Package Import Robot
  • Author(s): Ghislain Antony Vaillant
  • Date: 2017-11-02 08:49:18 UTC
  • Revision ID: package-import@ubuntu.com-20171102084918-7hs09ih668xq87ej
Tags: upstream-1.0.1
ImportĀ upstreamĀ versionĀ 1.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
"""
 
2
A setup.py script to use setuptools, which gives wheel and egg goodness, etc.
 
3
"""
 
4
try:
 
5
    from setuptools import setup
 
6
except ImportError:
 
7
    # SimpleITK no longer provides ez_setup, but a copy may be around
 
8
    # so we give it a try. It's intended that setuptools be install in
 
9
    # a constructed virtualenv during the make process.
 
10
    from ez_setup import use_setuptools
 
11
    use_setuptools()
 
12
import os
 
13
 
 
14
from setuptools import setup
 
15
 
 
16
fn = os.path.dirname(os.path.realpath(__file__)) + '/setup.py'
 
17
exec(open(fn).read())