Browse files

fix some relative imports

  • Loading branch information...
1 parent dc2a33f commit 750dff96e62ea6fcd7635aa29aaa50242d3bb80f @dougalsutherland dougalsutherland committed Apr 26, 2012
Showing with 9 additions and 7 deletions.
  1. +4 −3 bottleneck/
  2. +2 −2 bottleneck/benchmark/
  3. +3 −2 bottleneck/slow/
7 bottleneck/
@@ -1,21 +1,22 @@
+from __future__ import absolute_import
# Supported dtypes
dtypes = ['int32', 'int64', 'float32', 'float64']
-import slow
+from . import slow
# If you bork the build (e.g. by messing around with the templates),
# you still want to be able to import Bottleneck so that you can
# rebuild using the templates. So try to import the compiled Bottleneck
# functions to the top level, but move on if not successful.
- from func import (nansum, nanmax, nanmin, nanmean, nanstd, nanvar, median,
+ from .func import (nansum, nanmax, nanmin, nanmean, nanstd, nanvar, median,
nanmedian, nanargmin, nanargmax, rankdata, nanrankdata,
ss, partsort, argpartsort, replace)
- from move import (move_sum, move_nansum,
+ from .move import (move_sum, move_nansum,
move_mean, move_nanmean,
move_std, move_nanstd,
move_min, move_nanmin,
4 bottleneck/benchmark/
@@ -1,10 +1,10 @@
# For support of python 2.5
-from __future__ import with_statement
+from __future__ import absolute_import, with_statement
import numpy as np
import bottleneck as bn
-from autotimeit import autotimeit
+from .autotimeit import autotimeit
__all__ = ['bench']
5 bottleneck/slow/
@@ -1,3 +1,4 @@
+from __future__ import absolute_import
-from func import *
-from move import *
+from .func import *
+from .move import *

0 comments on commit 750dff9

Please sign in to comment.