Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Poisson_Solver
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
asantosnet
Poisson_Solver
Commits
7c8a9176
Verified
Commit
7c8a9176
authored
4 years ago
by
Hugo Kerstens
Browse files
Options
Downloads
Patches
Plain Diff
Attempt at pip compatibility
parent
b9c08f39
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
update: is_charge_density parameter
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pyproject.toml
+2
-0
2 additions, 0 deletions
pyproject.toml
setup.py
+6
-15
6 additions, 15 deletions
setup.py
with
8 additions
and
15 deletions
pyproject.toml
0 → 100644
+
2
−
0
View file @
7c8a9176
[build-system]
requires
=
[
"setuptools"
,
"wheel"
,
"Cython"
,
"numpy"
,
"scipy"
]
\ No newline at end of file
This diff is collapsed.
Click to expand it.
setup.py
+
6
−
15
View file @
7c8a9176
...
...
@@ -3,6 +3,9 @@
'''
from
setuptools
import
setup
as
setup_stools
from
setuptools
import
find_packages
from
Cython.Build
import
cythonize
import
numpy
import
sys
if
sys
.
version_info
<
(
3
,
5
):
...
...
@@ -15,12 +18,6 @@ install_requires = [
'
matplotlib
'
,
]
setup_requires
=
[
'
Cython
'
,
'
numpy
'
,
'
scipy
'
]
setup_stools
(
name
=
'
poisson
'
,
description
=
'
Poisson solver using finite volume
'
,
...
...
@@ -31,14 +28,8 @@ setup_stools(
'
Programming Language :: Python :: 3.6
'
,],
packages
=
find_packages
(
'
.
'
),
install_requires
=
install_requires
,
setup_requires
=
setup_requires
)
from
distutils.core
import
setup
as
setup_cy
from
Cython.Build
import
cythonize
import
numpy
setup_cy
(
ext_modules
=
cythonize
([
'
poisson/discrete/_finite_volume.pyx
'
,
ext_modules
=
cythonize
([
'
poisson/discrete/_finite_volume.pyx
'
,
'
poisson/discrete/_discrete_poisson.pyx
'
,
'
poisson/discrete/_linear_problem.pyx
'
]),
include_dirs
=
[
numpy
.
get_include
()])
include_dirs
=
[
numpy
.
get_include
()]
)
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