Skip to content

Commit b499f4c

Browse files
committed
MISC - deleting clib build from windows Makefile
1 parent add6af3 commit b499f4c

File tree

4 files changed

+33
-65
lines changed

4 files changed

+33
-65
lines changed

.gitignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
*.kpf
22
*-stamp
3-
*/*/*-stamp
43
build
54
*.swp
65
*.pyc
76
*.pyo
8-
nifti/_clib.so
9-
nifti/clib.py
7+
nibabel.egg-info/

Makefile.win

+6-38
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,23 @@
1-
# Makefile to build NiBabel under Windows using a standard Python
2-
# distribution and MinGW
3-
#
4-
# Adjust this path to match the version and location of your Python
5-
# installation
6-
PYTHON_VERSION=2.5
7-
PYTHON_PATH=C:\\Python25
8-
9-
#
10-
# Building
11-
#
12-
13-
all: build configure-inplace-use
14-
15-
# build included 3rd party pieces (if present)
16-
3rd: 3rd-stamp
17-
3rd-stamp:
18-
cd 3rd\nifticlibs & $(MAKE) -f Makefile.win
1+
# Makefile NiBabel under Windows using a standard Python distribution
192

20-
21-
build: 3rd build-stamp
22-
build-stamp:
23-
set PYTHON_INCLUDE="$(PYTHON_PATH)\\include" \
24-
& python setup.py build_ext -c mingw32
25-
26-
27-
installer: 3rd build
28-
# now build the installer
3+
installer:
4+
# now the installer
295
python setup.py bdist_wininst
306

31-
32-
configure-inplace-use:
33-
copy build\\lib.win32-$(PYTHON_VERSION)\\nifti\\_clib.pyd \
34-
nifti
35-
367
#
378
# Cleaning
389
#
3910

4011
clean:
41-
-rmdir /S /Q build
12+
-rmdir /S /Q
4213
-del /S *.a *.o *.gch *.pyd
4314

4415
#
4516
# Testing
4617
#
4718

48-
ut-%: build configure-inplace-use
49-
@set PYTHONPATH=$(CURDIR) & cd tests & python test_$*.py
50-
51-
unittest: build configure-inplace-use
52-
@set PYTHONPATH=$(CURDIR) & cd tests & python main.py
19+
unittest:
20+
@set PYTHONPATH=$(CURDIR) & nosetests nibabel
5321

5422

5523
#

doc/source/installation.rst

+9-7
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@
77
#
88
### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###
99
10+
.. XXX Package links and build instructions still nifti XXX
11+
1012
.. _installation:
1113

1214
************
1315
Installation
1416
************
1517

16-
It should be easy to get NiBabel running on any system. For the most
17-
popular platforms and operating systems there are binary packages provided in
18-
the respective native packaging format (DEB, RPM or installers). On all other
18+
It should be easy to get NiBabel running on any system. For the most popular
19+
platforms and operating systems there are binary packages provided in the
20+
respective native packaging format (DEB, RPM or installers). On all other
1921
systems NiBabel has to be compiled from source -- which should also be pretty
2022
straightforward.
2123

@@ -62,10 +64,10 @@ Additionally, there are binary packages for several RPM-based distributions,
6264
provided through the `OpenSUSE Build Service`_. To install one of these
6365
packages first download it from the `OpenSUSE software website`_. Please note,
6466
that this site does not only offer OpenSUSE packages, but also binaries for
65-
other distributions, including: CentOS 5, Fedora 9-10, Mandriva 2007-2008, RedHat
66-
Enterprise Linux 5, SUSE Linux Enterprise 10, OpenSUSE 10.2 up to 11.0. Once
67-
downloaded, open a console and invoke (the example command refers to NiBabel
68-
0.3.1)::
67+
other distributions, including: CentOS 5, Fedora 9-10, Mandriva 2007-2008,
68+
RedHat Enterprise Linux 5, SUSE Linux Enterprise 10, OpenSUSE 10.2 up to 11.0.
69+
Once downloaded, open a console and invoke (the example command refers to
70+
NiBabel 0.3.1)::
6971

7072
rpm -i python-nifti-0.20080710.1-4.1.i386.rpm
7173

setup.py

+17-17
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from distutils.core import setup
1919

2020
# For some commands, use setuptools.
21-
if len(set(('develop', 'bdist_egg', 'bdist_rpm', 'bdist', 'bdist_dumb',
21+
if len(set(('develop', 'bdist_egg', 'bdist_rpm', 'bdist', 'bdist_dumb',
2222
'bdist_wininst', 'install_egg_info', 'egg_info', 'easy_install',
2323
)).intersection(sys.argv)) > 0:
2424
# setup_egg imports setuptools setup, thus monkeypatching distutils.
@@ -33,22 +33,22 @@
3333

3434
def main(**extra_args):
3535
setup(name = 'nibabel',
36-
version = '1.0.0',
37-
author = 'Matthew Brett and Michael Hanke',
38-
author_email = 'NiBabel List <[email protected]>',
39-
license = 'MIT License',
40-
url = 'http://niftilib.sf.net/pynifti',
41-
description = 'Access a multitude of neuroimaging data formats',
42-
long_description = "",
43-
packages = ['nibabel',
44-
'nibabel.externals',
45-
'nibabel.testing',
46-
'nibabel.tests'],
47-
data_files = [('nibabel/tests/data',
48-
glob(os.path.join('nibabel', 'tests', 'data', '*')))],
49-
scripts = [os.path.join('bin', 'parrec2nii')],
50-
**extra_args
51-
)
36+
version = '1.0.0',
37+
author = 'Matthew Brett and Michael Hanke',
38+
author_email = 'NiBabel List <[email protected]>',
39+
license = 'MIT License',
40+
url = 'http://niftilib.sf.net/pynifti',
41+
description = 'Access a multitude of neuroimaging data formats',
42+
long_description = "",
43+
packages = ['nibabel',
44+
'nibabel.externals',
45+
'nibabel.testing',
46+
'nibabel.tests'],
47+
data_files = [('nibabel/tests/data',
48+
glob(os.path.join('nibabel', 'tests', 'data', '*')))],
49+
scripts = [os.path.join('bin', 'parrec2nii')],
50+
**extra_args
51+
)
5252

5353

5454
if __name__ == "__main__":

0 commit comments

Comments
 (0)