FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python3-eispice/setup.py at master · Narrat/python3-eispice · GitHub
This repository was archived by the owner on Nov 10, 2022. It is now read-only.
Narrat
/
python3-eispice
Public archive
Notifications
You must be signed in to change notification settings
Fork
1
Star
6
Code
Issues
1
Pull requests
0
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Security and quality
Insights
Expand file tree
Breadcrumbs
python3-eispice
/
setup.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
47 lines (40 loc) · 1.27 KB
Breadcrumbs
python3-eispice
/
setup.py
Copy path
File metadata and controls
47 lines (40 loc) · 1.27 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/python3
from
distutils
.
core
import
setup
,
Extension
from
distutils
.
sysconfig
import
get_python_lib
,
get_python_inc
import
os
import
subprocess
# This seems kind of arbitrary, is there a better way ?
numpy_include
=
get_python_lib
(
True
)
+
'/numpy/core/include'
if
os
.
name
==
'nt'
:
extra_compile_args
=
[
"-mnop-fun-dllimport"
]
else
:
extra_compile_args
=
[]
# set fortran library depending on type of compiler
try
:
if
os
.
environ
[
'FC'
]
==
'g77'
:
libfortran
=
'g2c'
else
:
libfortran
=
'gfortran'
except
KeyError
:
libfortran
=
'gfortran'
# run the Makefile
subprocess
.
Popen
([
'make'
,
'libs'
]).
wait
()
simulator
=
Extension
(
'simulator_'
,
define_macros
=
[(
'LIBNAME'
,
'simulator'
)],
include_dirs
=
[
'./include'
,
numpy_include
],
sources
=
[
'./module/simulatormodule.c'
],
library_dirs
=
[
'./libs'
],
libraries
=
[
'simulator'
,
'superlu'
,
'lapack'
,
'blas'
,
'toms'
,
'cephes'
,
'calc'
,
'data'
,
libfortran
],
extra_compile_args
=
extra_compile_args
)
setup
(
name
=
'eispice'
,
version
=
'0.11.6'
,
description
=
'eispice Circuit Simulator'
,
author
=
'Charles Eidsness'
,
author_email
=
'charles@thedigitalmachine.net'
,
url
=
'http://www.thedigitalmachine.net/eispice.html'
,
license
=
"GPL"
,
ext_modules
=
[
simulator
],
package_dir
=
{
''
:
'module'
},
packages
=
[
''
],
extra_path
=
'eispice'
)
Back
|
FazBrowse Home
|
New Git URL