Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_proto
Commits
ab1ba559
Commit
ab1ba559
authored
Nov 01, 2022
by
BO ZHANG
🏀
Browse files
added C example
parent
07a727fc
Pipeline
#245
passed with stages
in 17 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
cextern/helloworld.c
0 → 100644
View file @
ab1ba559
// Simple C program to display "Hello World"
// Header file for input output functions
#include
<stdio.h>
// main function -
// where the execution of program begins
int
main
()
{
// prints hello world
printf
(
"Hello World"
);
return
0
;
}
\ No newline at end of file
install_local.sh
View file @
ab1ba559
#!/usr/bin/env bash
#!/usr/bin/env bash
rm
-rf
build
rm
-rf
build
rm
-rf
dist
rm
-rf
dist
#
python setup.py build_ext
--inplace
python setup.py build_ext
#python setup.py install
#python setup.py install
python setup.py sdist
python setup.py sdist
pip
install
dist/
*
.tar.gz
--force-reinstall
pip
install
dist/
*
.tar.gz
--force-reinstall
...
...
setup.py
View file @
ab1ba559
...
@@ -37,4 +37,9 @@ setuptools.setup(
...
@@ -37,4 +37,9 @@ setuptools.setup(
# 'astropy',
# 'astropy',
# ],
# ],
python_requires
=
'>=3.9'
,
python_requires
=
'>=3.9'
,
)
ext_modules
=
[
setuptools
.
Extension
(
name
=
"csst_proto.cext.helloworld"
,
sources
=
[
"cextern/helloworld.c"
]
)
]
)
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment