diff --git a/.hgignore b/.hgignore
index e3357def858d25a3984e9ba6ed640a30956c57a5..133aa8076c825f084a541fe1c365dbbb24679377 100644
--- a/.hgignore
+++ b/.hgignore
@@ -4,6 +4,7 @@ syntax: glob
 .spyderproject
 .cproject
 *.pyc
+*.pyd
 *.so
 *.os
 output*
diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000000000000000000000000000000000000..27d813fd1b60a1186c19908160c6b60328083ddf
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,25 @@
+# -*- coding: utf-8 -*-
+"""
+Created on Fri May 03 10:27:04 2013
+
+@author: Jan
+"""
+
+#call with: python setup.py build_ext --inplace --compiler=mingw32
+
+import os
+import glob
+from distutils.core import setup
+from Cython.Build import cythonize
+
+setup(
+    name = 'Pyramid',
+    version = '0.1',    
+    description = 'PYthon based Reconstruction Algorithm for MagnetIc Distributions',
+    author = 'Jan Caron',
+    author_email = 'j.caron@fz-juelich.de',
+    package_dir = {'': 'src'},
+    packages = ['pyramid'],
+    ext_package = ['pyramex']
+    ext_modules = cythonize(glob.glob(os.path.join('pyramex','*.pyx')))
+)
diff --git a/src/pyramex/initcython.py b/src/pyramex/initpyximport.py
similarity index 87%
rename from src/pyramex/initcython.py
rename to src/pyramex/initpyximport.py
index 010a6930fe48e6b761783746f93b3440b12548c1..b48fe31b6abc49b1b57ae734fbc3b74cfbf3e09d 100644
--- a/src/pyramex/initcython.py
+++ b/src/pyramex/initpyximport.py
@@ -20,7 +20,7 @@ if os.name == 'nt':
 #        os.environ['PATH'] = 'C:\MinGW\bin'
 
     mingw_setup_args = { 'options': { 'build_ext': { 'compiler': 'mingw32' } } }
-    pyximport.install(setup_args=mingw_setup_args)
+    pyximport.install(setup_args=mingw_setup_args, inplace=True)
 
 
 elif os.name == 'posix':
@@ -29,4 +29,4 @@ elif os.name == 'posix':
     else:
         os.environ['CFLAGS'] = ' -I' + numpy.get_include()
         
-    pyximport.install()
\ No newline at end of file
+    pyximport.install(inplace=True)
\ No newline at end of file
diff --git a/src/pyramex/setup.py b/src/pyramex/setup.py
index 57ac98da24145548b6364a67555d72a84a94d29a..b49dc9fd187c4ae2ae0ffb54b7a344bfcfbea7be 100644
--- a/src/pyramex/setup.py
+++ b/src/pyramex/setup.py
@@ -7,10 +7,15 @@ Created on Fri May 03 10:27:04 2013
 
 #call with: python setup.py build_ext --inplace --compiler=mingw32
 
+import glob
 from distutils.core import setup
 from Cython.Build import cythonize
 
 setup(
-    name = "My hello app",
-    ext_modules = cythonize('hello.pyx'), # accepts a glob pattern
+    name = 'Pyramex',
+    version = '0.1',    
+    description = 'Pyramid Cython Extensions',
+    author = 'Jan Caron',
+    author_email = 'j.caron@fz-juelich.de',
+    ext_modules = cythonize(glob.glob('*.pyx'))
 )
\ No newline at end of file