Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
kwant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Joseph Weston
kwant
Commits
8418b37a
Commit
8418b37a
authored
9 years ago
by
Anton Akhmerov
Committed by
Christoph Groth
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix numpy not being available on install
parent
c2b5f339
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
setup.py
+7
-3
7 additions, 3 deletions
setup.py
with
7 additions
and
3 deletions
setup.py
+
7
−
3
View file @
8418b37a
...
...
@@ -25,7 +25,12 @@ from distutils.command.build import build
from
setuptools.command.sdist
import
sdist
from
setuptools.command.build_ext
import
build_ext
import
numpy
try
:
import
numpy
except
ImportError
:
include_dirs
=
[]
else
:
include_dirs
=
[
numpy
.
get_include
()]
CONFIG_FILE
=
'
build.conf
'
README_FILE
=
'
README.rst
'
...
...
@@ -432,7 +437,6 @@ def ext_modules(extensions):
return
result
def
main
():
setup
(
name
=
'
kwant
'
,
version
=
version
,
...
...
@@ -451,7 +455,7 @@ def main():
'
build_ext
'
:
kwant_build_ext
,
'
build_tut
'
:
kwant_build_tut
},
ext_modules
=
ext_modules
(
extensions
()),
include_dirs
=
[
numpy
.
get_
include
()]
,
include_dirs
=
include
_dirs
,
setup_requires
=
[
'
numpy > 1.6.1
'
,
'
nose >= 1.0
'
],
install_requires
=
[
'
numpy > 1.6.1
'
,
'
scipy >= 0.9
'
,
'
tinyarray
'
],
extras_require
=
{
'
plotting
'
:
'
matplotlib >= 1.2
'
})
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment