-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #239 from alxhotel/refactor-folders
Rename folders
- Loading branch information
Showing
69 changed files
with
173 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
pipeline { | ||
agent any | ||
environment { | ||
PERSIST_WORKSPACE = "" | ||
} | ||
PERSIST_WORKSPACE = "" | ||
} | ||
|
||
stages { | ||
stage('Checkout eQASM_Assembler'){ | ||
stage('Checkout eQASM_Assembler') { | ||
steps { | ||
script { | ||
PERSIST_WORKSPACE = WORKSPACE | ||
|
@@ -15,7 +15,7 @@ pipeline { | |
sh 'GIT_SSH_COMMAND="ssh -i /var/jenkins_home/.ssh/jenkins_eqasm_assembler_deploy" git clone [email protected]:QE-Lab/eQASM_Assembler.git' | ||
} | ||
} | ||
stage('Checkout libqasm'){ | ||
stage('Checkout libqasm') { | ||
steps { | ||
script { | ||
PERSIST_WORKSPACE = WORKSPACE | ||
|
@@ -35,10 +35,10 @@ pipeline { | |
steps { | ||
dir(PERSIST_WORKSPACE) { | ||
sh 'pwd' | ||
sh 'rm -Rf cbuild' | ||
sh 'rm -rf cbuild' | ||
sh 'mkdir cbuild' | ||
sh 'cd cbuild/ && cmake .. && make' | ||
sh 'rm -Rf env' | ||
sh 'rm -rf env' | ||
sh 'python3 -m venv env' | ||
sh ''' | ||
. ./env/bin/activate && | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
pipeline { | ||
agent any | ||
environment { | ||
PERSIST_WORKSPACE = "" | ||
} | ||
PERSIST_WORKSPACE = "" | ||
} | ||
|
||
stages { | ||
stage('Checkout eQASM_Assembler'){ | ||
stage('Checkout eQASM_Assembler') { | ||
steps { | ||
script { | ||
PERSIST_WORKSPACE = WORKSPACE | ||
|
@@ -15,7 +15,7 @@ pipeline { | |
sh 'GIT_SSH_COMMAND="ssh -i /var/jenkins_home/.ssh/jenkins_eqasm_assembler_deploy" git clone --branch v2.2.0 [email protected]:QE-Lab/eQASM_Assembler.git' | ||
} | ||
} | ||
stage('Checkout libqasm'){ | ||
stage('Checkout libqasm') { | ||
steps { | ||
script { | ||
PERSIST_WORKSPACE = WORKSPACE | ||
|
@@ -35,10 +35,10 @@ pipeline { | |
steps { | ||
dir(PERSIST_WORKSPACE) { | ||
sh 'pwd' | ||
sh 'rm -Rf cbuild' | ||
sh 'rm -rf cbuild' | ||
sh 'mkdir cbuild' | ||
sh 'cd cbuild/ && cmake .. && make' | ||
sh 'rm -Rf env' | ||
sh 'rm -rf env' | ||
sh 'python3 -m venv env' | ||
sh ''' | ||
. ./env/bin/activate && | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
include README.md | ||
include programs/*.py | ||
include tests/*.py | ||
include examples/*.py | ||
include tests/*.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
|
||
#include <time.h> | ||
|
||
#include <ql/openql.h> | ||
#include <openql.h> | ||
|
||
int main(int argc, char ** argv) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,13 @@ | |
from sys import platform | ||
|
||
rootDir = os.path.dirname(os.path.realpath(__file__)) | ||
srcDir = os.path.join(rootDir, "ql") | ||
srcDir = os.path.join(rootDir, "src") | ||
buildDir = os.path.join(rootDir, "cbuild") | ||
clibDir = os.path.join(buildDir, "openql") | ||
clibDir = os.path.join(buildDir, "swig") | ||
|
||
nprocs = 1 | ||
env_var_nprocs = os.environ.get('NPROCS') | ||
if(env_var_nprocs != None): | ||
if (env_var_nprocs != None): | ||
nprocs = int(env_var_nprocs) | ||
|
||
print('Using {} processes for compilation'.format(nprocs)) | ||
|
@@ -59,11 +59,13 @@ | |
else: | ||
print('Unknown/Unsupported OS !!!') | ||
|
||
genclib = os.path.join(clibDir, clibname) | ||
clib = os.path.join(rootDir, "openql", clibname) | ||
copyfile(genclib, clib) | ||
clib = os.path.join(clibDir, clibname) | ||
swigDir = os.path.join(rootDir, "swig", "openql") | ||
clibSwig = os.path.join(swigDir, clibname) | ||
|
||
copyfile(clib, clibSwig) | ||
copyfile(os.path.join(clibDir, "openql.py"), | ||
os.path.join(rootDir, "openql", "openql.py")) | ||
os.path.join(swigDir, "openql.py")) | ||
os.chdir(rootDir) | ||
|
||
|
||
|
@@ -117,8 +119,9 @@ def read(fname): | |
author='Nader Khammassi and Imran Ashraf', | ||
author_email='[email protected], [email protected]', | ||
url='https://github.com/QE-Lab/OpenQL', | ||
license=read('license'), | ||
license=read('LICENSE'), | ||
packages=['openql'], | ||
package_dir={'': 'swig'}, | ||
include_package_data=True, | ||
package_data={'openql': [clib]}, | ||
package_data={'openql': [clibSwig]}, | ||
zip_safe=False) |
Oops, something went wrong.