Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80624736
setup.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Sep 1, 17:57
Size
1 KB
Mime Type
text/x-python
Expires
Tue, Sep 3, 17:57 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20409846
Attached To
rMTOOLS Mtools
setup.py
View Options
import
sys
,
os
,
string
,
glob
from
distutils.sysconfig
import
*
from
distutils.core
import
setup
,
Extension
from
distutils.command.build_ext
import
build_ext
from
distutils.command.install
import
install
from
distutils.command.install_data
import
install_data
import
numpy
long_description
=
"""\
This module provides lots of tools used
to deal with image files.
"""
INCDIRS
=
[
'.'
]
SCRIPTS
=
glob
.
glob
(
'scripts/*'
)
##############################################################
# variables for numpy
##############################################################
INCDIRS
.
append
(
numpy
.
get_include
())
#INCDIRS.append(numpy.get_numarray_include())
class
Mtools_install_data
(
install_data
):
def
finalize_options
(
self
):
if
self
.
install_dir
is
None
:
install_lib
=
self
.
get_finalized_command
(
'install_lib'
)
self
.
warn_dir
=
0
self
.
install_dir
=
os
.
path
.
normpath
(
os
.
path
.
join
(
install_lib
.
install_dir
,
"Mtools"
))
setup
(
name
=
"Mtools"
,
version
=
"4.0.0"
,
author
=
"Revaz Yves"
,
author_email
=
"yves.revaz@epfl.ch"
,
url
=
"http://obswww.unige.ch/~revaz"
,
description
=
"Mtools module"
,
packages
=
[
'Mtools'
],
cmdclass
=
{
'install_data'
:
Mtools_install_data
},
#ext_modules = [Extension("Ptools.cgtools",
# ["src/cgtools/cgtools.c"],
# include_dirs=INCDIRS)
# ],
#data_files=[('rgb_tables',glob.glob('./rgb_tables/*'))],
scripts
=
SCRIPTS
)
Event Timeline
Log In to Comment